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):
Quote:
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?
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:
Quote:
<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>
<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 ?