Forum Moderators: open

Message Too Old, No Replies

Disable IE alert

Disable IE Alert

         

Manzoor

7:21 am on Nov 13, 2009 (gmt 0)

10+ Year Member



hi,

We are using a javascript to create a tree on a jsp. We are using the dtree.js available on the internet.

Everything is working fine except that we are getting an alert saying "The script you are running is causing the Internet Explorer to work slowly"..

Is there a way to disable this alert through javascript. We can do it by altering a registry entry and increasing the maxscriptstatements, but that is not possible as this application is used by many people over the internet.

Is there a way to hide/disable this alert in IE?

Fotiman

2:16 pm on Nov 13, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld! It sounds like your dtree.js script may have performance problems. Aside from modifying the registry, your only option really is to determine where the script might require optimization and modify it to perform better.

As of Internet Explorer 4.0 and later versions, the time-out is no longer a fixed value based on Windows messages. Internet Explorer now tracks the total number of executed script statements and resets the value each time that a new script execution is started, such as from a timeout or from an event handler, for the current page with the script engine. Internet Explorer displays a "long-running script" dialog box when that value is over a threshold amount.

Source: [support.microsoft.com...]

So if you find that your script is running a particular "for" loop for a very long time, maybe you could optimize that bit of code?

Fotiman

5:04 pm on Nov 13, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Here are some great articles that might help:

[nczonline.net...]
[nczonline.net...]