I'm having a problem on http://www.ironwoodadvisory.com when user manages to call popup() function or something like that before menu is loaded. (Resulting in Object expected error to appear)
I know that a 200ms delay would probabally work, but seems pretty hack to me.
Is there a global variable that is defined as soon as the menu is loaded, or do I have to do something like wrap the popup() function with an onload switch?
Thanks!
Menu Loaded/onLoad switch?
There is a buildAllMenus parameter which is a global property and goes up at the top. Menu Quick Reference Guides - Global Properties The explanation is about half-way down. There is also a preloadmenuimages.js module.
Ruth
Ruth
-
- Beginner
- Posts: 5
- Joined: Fri Jan 28, 2005 9:18 pm
Hmm, your answer doesn't seem to address the problem I'm having.
Problem: If a user tries to drop down a menu before the menu is finished loading, I get an Object Expected error. User drops menu by rolling over an image that calls popup() onmouseover.
Like I said, I'd guess the error is because the user can call popup() function before it is defined (by loading the .js include files).
Is there any way, other than wrapping that function, that I can prevent this from happening?
Problem: If a user tries to drop down a menu before the menu is finished loading, I get an Object Expected error. User drops menu by rolling over an image that calls popup() onmouseover.
Like I said, I'd guess the error is because the user can call popup() function before it is defined (by loading the .js include files).
Is there any way, other than wrapping that function, that I can prevent this from happening?
-
- Beginner
- Posts: 5
- Joined: Fri Jan 28, 2005 9:18 pm
-
- Beginner
- Posts: 5
- Joined: Fri Jan 28, 2005 9:18 pm
-
- Beginner
- Posts: 5
- Joined: Fri Jan 28, 2005 9:18 pm