Two menus

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Croft Storm
Beginner
Beginner
Posts: 9
Joined: Thu Oct 02, 2003 5:15 pm

Two menus

Post by Croft Storm »

I tried putting two menus on 1 page but I got a 'stack overflow' error. is there any way of getting round this?
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Post a URL (as requested) so we can see your code.
John
Croft Storm
Beginner
Beginner
Posts: 9
Joined: Thu Oct 02, 2003 5:15 pm

Post by Croft Storm »

Croft Storm
Beginner
Beginner
Posts: 9
Joined: Thu Oct 02, 2003 5:15 pm

Post by Croft Storm »

Ok, the error is here: http://croftstorm.uni.cc
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

You are running v3.5.15 of the code, which is no longer supported (and why your topic was moved to the proper location). I would suggest an upgrade to the new v5 series.
John
pstarkey@cinergy.com
Beginner
Beginner
Posts: 4
Joined: Sun May 19, 2002 7:24 pm

Post by pstarkey@cinergy.com »

Can anyone answer the actual post other than saying to upgrade? Supposedly two menus on one page was OK in version 3.

Thanks!
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Yes it is possible but we don't support v3 anymore, that's why we ask you to upgrade.

From memory my guess is that you are loading mmenu.js twice, you only need one copy of it.

Cheers
Andy
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

What I see on your site is that you are running version 5, not 3. And, yes you can run two menus. I see you have milonic and also a menu from dynamicdrive, so did you mean those two or where you referring to running two milonic menus? I did look at your source code and noted that it shows two codes for menu_data.js. I'm not sure if they are supposed to refer to two different menu files or if somehow the site is generating that code twice?

Code: Select all

<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT> etc. and then <SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>

<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT><SCRIPT language=JavaScript src="contextmenu.js" type=text/javascript></SCRIPT>
If they are supposed to refer to two different menu data files they need different names. If you are speaking about the other menu not showing up..the one that says welcome...I think it must have something to do with the frames, because opening just the mainsplash shows that menu, but your main page from the link gives two error messages both saying access is denied and that menu does not show up

Code: Select all

Line 204 char 2 access is denied mainsplash.htm  and line 39 char 2 access is denied mainsplash.htm



Ruth
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Moved back because you upgraded to v5 (thank you). Don't forget to include your license number in the requested spot in the code files.

Ruth is correct about the double call to menu_data.js. One of those needs to go.
John
Post Reply