I am writing an application that will have some users on Internet Explorer 6. These users on IE6 have their browsers set to debug JavaScript errors. If a JS error occurs on the page, a window will pop-up and the user is asked if they would like to ‘continue running scripts on this page’.
However, my application has its own internal try/catch system for handling/logging errors and prompting the user what to do. In my error handling system, I distinguish between fatal errors and non-fatal errors. With non-fatal errors, the user is prompted to re-try after a moment and we allow JavaScript to continue executing. With fatal errors (e.g., data needed for rendering the initial page load is missing), JavaScript execution is halted to prevent further error and the user is prompted to reload the page.
The problem with IE6 is that when script debugging is turned on, JavaScript execution is halted no matter what–there’s no opportunity for the user to press the ‘Yes, continue running scripts on this page’. So even if the error was non-fatal, it’s game over, user has to reload the page.
Does anyone know a way to get around this and prevent IE6 from halting JavaScript execution? Unfortunately, asking my users to change their IE settings is not an option.
It’s not possible, certain errors will always halt JavaScript execution in IE6.