Yahoo is not defined Error

View: New views
2 Messages — Rating Filter:   Alert me  

Yahoo is not defined Error

by Del Dhanoa :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Firebug keeps spitting out a "Yahoo is not defined" with the error
point at the following line:
YAHOO.util.Event.onAvailable(window, 'load', YAHOO.riseandfall.init,
Yahoo.riseandfall, true);

Here is the code format:

all of the Javascript libraries are referenced here including
yahoo-min.js (using v2.2.0 by the way)

<script language="JavaScript">
YAHOO.riseandfall = function(){
        // blah blah
   return {
      init : function() {
        // blah blah blah
      },
      advisorAdvice: function(){ // blah blah
      }
};
}();

YAHOO.util.Event.onAvailable(window, 'load', YAHOO.riseandfall.init,
Yahoo.riseandfall, true);
YAHOO.util.Event.addListener("advisorAvatar", "click", advisorAdvice);
</script>


Can someone please point out the error of my ways?


Parent Message unknown Re: Yahoo is not defined Error

by dav.glass :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Del --

Change this line:
YAHOO.util.Event.onAvailable(window, 'load', YAHOO.riseandfall.init, Yahoo.riseandfall, true);

To this:
YAHOO.util.Event.onAvailable(window, 'load', YAHOO.riseandfall.init, YAHOO.riseandfall, true);
 
Hope that helps 8-)
Dav


Dav Glass
dav.glass@...
blog.davglass.com


+ Windows: n. - The most successful computer virus, ever. +
+ A computer without a Microsoft operating system is like a dog
    without bricks tied to its head +
+ A Microsoft Certified Systems Engineer is to computing what a
   McDonalds Certified Food Specialist is to fine cuisine  +

----- Original Message ----
From: Del <dhanoad@...>
To: ydn-javascript@...
Sent: Tuesday, March 20, 2007 10:22:18 AM
Subject: [ydn-javascript] Yahoo is not defined Error

Firebug keeps spitting out a "Yahoo is not defined" with the error
point at the following line:
YAHOO.util.Event.onAvailable(window, 'load', YAHOO.riseandfall.init,
Yahoo.riseandfall, true);

Here is the code format:

all of the Javascript libraries are referenced here including
yahoo-min.js (using v2.2.0 by the way)

<script language="JavaScript">
YAHOO.riseandfall = function(){
    // blah blah    
   return {
      init : function() {
    // blah blah blah
      },
      advisorAdvice: function(){                        // blah blah
      }                                    
};
}();

YAHOO.util.Event.onAvailable(window, 'load', YAHOO.riseandfall.init,
Yahoo.riseandfall, true);
YAHOO.util.Event.addListener("advisorAvatar", "click", advisorAdvice);
</script>


Can someone please point out the error of my ways?




 
Yahoo! Groups Links