My webpage has both a horizontal menu in the header cell of a table and a vertical menu in the left column of the table.
I am using 2 arrays - menu_array.js for the header and menu_array_v_scout.js for the vertical menu in the left column.
I have commented out the section
// The following line is critical for menu operation, and must appear only once.
//menunum=0;menus=new Array();_d=document;function
//addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script
//language=javascript>";for(a=1;a<menus.length;a++){mt+="
//menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
//Please leave the above line intactin the second, vertical menu array (menu_array_v_scout.js ).
I receive a stack overflow error when I access the page.
Any ideas?
Hor menu and vert menu in table gives stack overflow error
-
- Advanced
- Posts: 23
- Joined: Tue Jul 02, 2002 9:08 pm
Stack Overflow
Not sure, but maybe you should delete the following from your second menu file (menu_array_v_scout.js):
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
menunum=0;menus=new Array();_d=document;function addmenu(){menunum++;menus[menunum]=menu;}function dumpmenus(){mt="<script language=javascript>";for(a=1;a<menus.length;a++){mt+=" menu"+a+"=menus["+a+"];"}mt+="<\/script>";_d.write(mt)}
-
- Advanced
- Posts: 23
- Joined: Tue Jul 02, 2002 9:08 pm
Stack Overflow
Could you post the URL of your site? It might help to be able to look at the code directly.
Ok, I figured my problem
I called the mmenu.js twice on my page.
That should solve your problem.
http://www.milonic.co.uk/menu/faq.php#l34
end
I called the mmenu.js twice on my page.
That should solve your problem.
http://www.milonic.co.uk/menu/faq.php#l34
end