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:58

"Do you want to abort the script" popup box proble

Poster: namba
Dated: Thursday January 6 2005 - 0:46:09 GMT

I have two menu on my webpage a horizontal one and a vertical one,
when the page first load it is very quick.

the vertical menu has links to other .html pages which have the same code as the the main one exept for some text (they are generated from template).

Each time I click on one of those links in the vertical menu, I get to pop up boxes (I guess one for the vertical menu and one for the vertical one):
A script on this page is causing mozilla to run slowly. If it continues to run, your computer may become unresponsive.
Do you want to abort the script?

If I click on 'OK' I the page got load and I can continue normally.

I am using Firefox/1.0 but I tried with IE 6 and get the same problem.
I get the same problem with IE .

The javascript on the page looks like this:
<script type="text/javascript" language="JavaScript" src="/javascript/milonic_src.js"></script>
<script type="text/javascript" language="JavaScript" >
if(ns4)_d.write("<script type=\"text\/javascript\" language=\"JavaScript\" src=\/javascript\/mmenuns4.js><\/script>");
else _d.write("<script type=\"text\/javascript\" language=\"JavaScript\" src=\/javascript\/mmenudom.js><\/script>");
<script type="text/javascript" language="JavaScript" src="/javascript/menu_data.js"></script>
<!-- top menu -->
<script type="text/javascript" language="JavaScript" src="/javascript/tiptop.js"></script>

the vertical menu seems to cause the problem, the file menu_data.js is generated automaticaly from the tree structure and is very big, 2700 lines , 100k, is there any solution ?

Poster: namba
Dated: Friday January 7 2005 - 8:12:47 GMT

can someone give me some advice, what is the maximum size of the menu, I guess you must have made some test, right ?

Poster: Andy
Dated: Friday January 7 2005 - 8:15:10 GMT

It's only limited by memory and processor power.

I've seen menus with 100's of sub menus and 1000's of menu items work quite well.

There are no restrictions.