Issue:
If the idle time on Web TimeSheet is too long and the user accesses other web based application, after certain period of time when he logs back to Web TimeSheet gets the following error message: A script on this page is causing your web browser to run slowly IE 8, and the application logs out the user.

Cause:
It is due to the fact that Internet Explorer 8 does not have the capability to handle too many style keys, due to which it gives an error regarding script on page.

Resolution:

Please follow the steps list below:

Method A:

  • Open Internet Explorer.
  • On the Tools menu, click Internet Options.
  • In the Internet Options dialog box, click Advanced.
  • Click to select the Disable script debugging check box.
  • Click to clear the Display a notification about every script error check box.
  • Click OK.

Method B:
This includes creating a new D Word in the Registry so that Internet Explorer is forced to handle more number of Styles at a given point of time.

N.B: Make sure to take a back up of the Registry before making any changes

Please follow the steps listed below:

  • Click Start
  • Click on Run
  • Type regedit in the Run field and click OK.
  • In the Registry open this key: HKEY_CURRENT_USER\Software\Microsoft\InternetExplorer\Styles
  • In case the key is present then:
  • Right click anywhere in the right pane and create a new DWORD value called "MaxScriptStatements"
  • (copy and paste that in to the name box) and set the value to the desired number of script statements.
  • Provide a value of 5,000,000.

N.B.: (If the Styles key is not present, create a new key that is called Styles.)

To create the new key please follow the steps given below:

  • Right click on Internet Explorer key and create a new key by the name of Styles.
  • Right click anywhere in the right pane and create a new DWORD value called "MaxScriptStatements"
  • (copy and paste that in to the name box) and set the value to the desired number of script statements.
  • Provide a value of 5,000,000.
  • Close the registry editor window and restart the system for the changes to take place.
  • Launch Web TimeSheet and the error would not appear anymore.