I used the drop menu creator to create a simple tab example, it initially appears fine , but when I *first* click on a tab I always get a javascript error...
Return to Recent Questions
Q:
I used the drop menu creator to create a simple tab example, and I
created a simple HTML file to display the tabs.
It initially appears fine when the page first displays (e.g., the
correct div is hidden), but when I *first* click on a tab I always
get a javascript error deep in the .js code. Then I click around a
bit between the tabs and get some display problems (no more
javascript errors though), until finally the show/hide logic
recovers and all looks ok.
The error I initially get is something like �tabs[�].id is not an
object�. I have the IE7 debugger turned on, otherwise I might not
ever see this error.
FYI, I tried your example menus on your web site and everything
is fine! Maybe the .js files on your web site are not the same as
those created by the generator?
A:
You should set the following parameter in drop menu creator:
var bselectedSmItem=0;
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
- Sep 23, 2006 - Is it possible that javascript drop down menus doesn't put anything on the local computer?
- Sep 26, 2006 - Firefox doesn't support the dropshadow and effects in the javascript pull down menu.
- Sep 29, 2006 - Is it possible to use an external file in the java drop down menu?
- Oct 01, 2006 - When I click on link of my vertical drop down menu no file is loaded!?
- Oct 16, 2006 - I need the sub menu of the drop menu to be vertical instead of horizontal
- Oct 27, 2006 - In IE 6.0 and Firefox 1.5.0.4, the submenus of my dhtml dropdown menu are not visible
|