javascript error : stop running this script in IE

Discussion in 'JavaScript and AJAX' started by sakthi.abdullah, Aug 1, 2007.

  1. sakthi.abdullah

    sakthi.abdullah New Member

    Joined:
    Mar 15, 2007
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    0
    When I load a web-page I am encountering this javascript error:

    "Stop running this script.A script on this page is causing internet explorer to run slowly"


    Is there a way to bypass this error by adjusting IE settings??
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    I never get that. Is this for some particular web page.
     
  3. sakthi.abdullah

    sakthi.abdullah New Member

    Joined:
    Mar 15, 2007
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    0
    I got it ...

    Actually this 'll occur if u have large amount of statements to execute (in my case .javascript)

    You have to make some adjustments in registry!

    1. Using a Registry Editor such as Regedt32.exe,
    open this key:HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\Styles

    Note If the Styles key is not present, create a new key that is called Styles.

    2. Create a new DWORD value called "MaxScriptStatements" under this key
    and set the value to the desired number of script statements.

    By default the key doesn't exist. If the key has not been added,
    Internet Explorer 4 defaults to 5,000,000 statements executed
    as the trigger for the time-out dialog box.

    Because the Internet Explorer 4.0, 5.0, 6, and 7 time-out is based on the number of
    script statements executed, the time-out dialog box will not display during ActiveX control
    or database-access delays. Endless loops in script will still be detected.
     
  4. crprawin

    crprawin New Member

    Joined:
    Dec 22, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    Even if I follow the steps in advanced tab in Tools menu,I get the popup.
    I use the infragistics to find the value from a grid where in the value is not present.
    I have handled a script where the text is not found.
    But soon after the 'Text not found' popup,I am getting this weird popup namely
    'Stop running this script?'.

    Please help where the code side solution can be done for this issue.:pleased:
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice