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

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
namba
Beginner
Beginner
Posts: 8
Joined: Thu Jan 06, 2005 1:19 am

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

Post by namba »

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>
<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 ?
namba
Beginner
Beginner
Posts: 8
Joined: Thu Jan 06, 2005 1:19 am

Post by namba »

can someone give me some advice, what is the maximum size of the menu, I guess you must have made some test, right ?
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

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.

Cheers
Andy
Post Reply