okay...

As an interim step, and one that I really don't like, I dumped all of the
code contained within the doc.ready block, directly inside the
initBlazeDSCode method. I've got it working now, but it's ugly and I really
don't like doing it this way.

Does anyone have a better way to do this?

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Friday, April 04, 2008 3:22 PM
To: jQuery (English)
Subject: [jQuery] Re: Func outside of doc.ready cannot access function
inside doc.ready? Why not?


I'm still having trouble with this. All of my code is already written inside
the doc.ready function. The code which needs to be located outside of the
doc.ready function HAS to be able to call code within the doc.ready body.
I'd be GREATLY in debt to anyone who could help me resolve this issue.

Here's a sample of my code:

<script type="text/javascript">
<!--
        FDMSLibrary.load("FDMSBridge.swf", initBlazeDSCode);
        function initBlazeDSCode() {
                alert('blaze ready');
                consumer.addEventListener("message", messageHandler);
        }
        function messageHandler(e) {
                alert('got the message');
        }
//-->
</script>
<script type="text/javascript">
<!--
        $(document).ready(function(){
                bh = function() {
                        return {
                                runMeNow: function () {
                                        alert('runMeNow');
                                }
                        }
                }
        });
//-->
</script>


Reply via email to