This is my code:
http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) http_request.overrideMimeType('text/javascript'); http_request.onreadystatechange = alertContents; http_request.open('POST', base_url, true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.setRequestHeader("Content-length", parameters.length); http_request.setRequestHeader("Connection", "close"); http_request.send(parameters);
Running in the latest firefox.
This code works fine, but when the called page causes an internal internal server error, javascript stops on the page, and further events scheduled with setInterval / setInterval are not executed. Why is this happening? How to catch him?
source share