2 Replies Latest reply on Dec 22, 2008 3:05 AM by Suresh Kumar

    Unresponsive script error with ScrollableDataTable

    Suresh Kumar Newbie

      In my application, I have a scrollable data table which has 30 columns [total numbers of column are dynamic and it can be more than this]. 5 columns are frozen columns [frozen columns count also dynamic] and remaining columns are scrollable part. In frozen columns, I have one editable cell and all the columns in scrollable area can have editable cells. All editable cells have RichFaces in-place-edit components. Styling applied to table rows to show in alternate colors.

      While rendering this table in FireFox, I am getting "Unresponsive script" error in framework.pack.js at different line numbers. Below is the error message I am getting:

      A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

      Script: http://localhost:8080/XYZ/a4j/g/3_2_2.GA/org/ajax4jsf/framework.pack.js.premedia:37

      I am using FireFox 3.0.4.

      Options tried:
      1) By changing dom.max_script_run_time parameter to 20 in FireFox I am able to rule out this error. But we cannot ask user to change this settings.

      2) Tried setting dom.max_script_run_time parameter programmatically by using following script:

      navigator.preference("dom.max_script_run_time parameter", "20");

      But this warns user before executing the script which user may not interested to do.

      Please provide suggestions to avoid this error.