[snip] hint - you're already on the wrong list. Read on.
Here is a brief background of the problem:[snip]
chose this because I need collapsing menus. There are lots of functions
under each category; if I were to use HTML for the menu, my users would have
to scroll way down to get to where they want to go - especially the ones
menu and changes what is displayed based on the session array data.
Here is the problem:
Here is the small amount of information I know about the problem:
so the (pseudo code) equivalent of:
<input type="submit" id="op" name="op" value="Operation" />
operation_button = my_find_item_func('op');
may be holding null for 'operation_button' because op hasn't been added to the DOM yet. You have to wait until the page fully loads, then call a function to find that 'op' button.
The reason it works most of the time, is probably because it's not being triggered until you mouseover the menu. Try loading the page with your mouse nowhere near where the menus should go, and the problem may 'disappear' (note: obviously not a solution). There's no guarantee, but that's a distinct possibility.
Search for body.onload or window.onload functions.
Also, whatever dropdown code you're using - if they don't describe doing this, you probably can find better. Any sane packaged dropdown code should be explicit about requiring the user to use onload to instantiate things.
- Martin Norland, Database / Web Developer, International Outreach x3257
The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital.
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php