Capturing ERR_CONNECTION_REFUSED error in Ajax calls

Hi,

Upon an "ERR_CONNECTION_REFUSED" error in an Ajax operation, the error handler is called (either locally to the ajax call or registering the "onAjaxError" global handler).

However, all the times the XMLHttpRequest (xhr) object doesn't seem to contain any info about the error (i.e.: xhr.status = 0 and xhr.statusText = "")

How can I capture it and show the error details?

Thanks

Tagged:

Comments

Sign In or Register to comment.