- Are you sure that you tried initializing the menu
inside a "load" event handler for the window (as in
you to send a URL to a repro case so that I can test
it myself because that seems really strange.
You could also try passing the id of the element that
is the next sibling of the root node of your menu to
the "onAvailable" method. Looking at your markup, it
appears that'd be the DIV with the id of "yui-main."
--- dgaryet <dgaryet@...> wrote:
> I am having the same problem. I tried usinghttp://www.kidsspeakspanish.org/Test/www/index.shtml.
> OnWindowLoad and it
> code doing a
> document.write on my pages. An example of the
> problem can be seen at:
> Just click on
> the home menu item a few times and you will see it
> happen (using IE6).
> Yahoo! Groups Links
> (Yahoo! ID required)
- Here is the content of espmenu.js, which is included in my page:
YAHOO.example.onWindowLoad = function(p_oEvent)
var oMenu = new YAHOO.widget.Menu
// Initialize and render the menu when it is available in the DOM
YAHOO.util.Event.addListener( window, "load",
I tried moving the div containing my menu to after the yuimain div, as
and now it seems to work fine. Go figure.
> Here is the content of espmenu.js, which is included in my page:
> // espmenu.js
> YAHOO.example.onWindowLoad = function(p_oEvent)
> var oMenu = new YAHOO.widget.Menu
> // Initialize and render the menu when it is available in the DOM
> YAHOO.util.Event.addListener( window, "load",
> YAHOO.example.onWindowLoad );
> I tried moving the div containing my menu to after the yuimain div, as
> and now it seems to work fine. Go figure.