Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:27

DHTML Menu Version 5.19 Infinite Javascript Loop ??


Poster: gardel
Dated: Monday May 24 2004 - 16:40:35 BST

Hello ,

I recently purchased the DHTML Menu and have been playing around with it a bit to do what i need . What i have set up right now is a top level menu with one level of sub-menus . The top level menu is defined in a table for relative positioning . The problem i am having is any sub-menu link i click on makes both FireFox 0.8 and IE 6 go into infinite loops . This even happens if i manually type the URL i want to retrieve in the address bar instead of clicking the sub-menu item .

Has any one had this problem , and if so how do i get around it ?


thanks ,

george .


Poster: John
Dated: Monday May 24 2004 - 17:01:50 BST

You've got someting amiss in there. v5.19 is extremely stable, and I'm sure it's not your problem.

Please post, as requested, a URL so we can take a look.


Poster: gardel
Dated: Monday May 24 2004 - 18:04:14 BST

Thanks for the quick response .
I afraid the site i am developing is not available outside the companies intranet so i cant post any link . Is there any other information i can give that would help in the diagnosis of this problem ?
The one thing i was thinking could be a problem is the placement of the with() calls . I am not using a menu_data.js file for configuration as the menu is dynamically built so it is in the head of the html document . However , i am experimenting with placing the data in other locations like after the <body> and <html> tags . So far no success .


Poster: Andy
Dated: Monday May 24 2004 - 18:13:32 BST

Send us a copy of your data file and we'll take a look at it.

As John says the menu is very stable so could be something else but of course I can't rule anything out until I've seen it.

Cheers
Andy


Poster: John
Dated: Monday May 24 2004 - 18:45:12 BST

You can post your _data file and HTML here. Make sure you use the [code][/code] tags.


Poster: gardel
Dated: Monday May 24 2004 - 19:35:23 BST

ok .. i finally figured out what the problem was incase anyone else runs into it .
Basically my top level menu had a name of the empty string [""] ! hehe . i assume there was a check for the name and it was never finding the menu by the name "" or something , therefore going into an infinite loop . This happened because i was dynamically populating the menus from a database and the name field was empty .

The lesson here .: dont ever name your menu items with the empty string .

george .,

Thanks for everyone's time who tried to help me out , i do appreciate it .