I have a page with a dialog window which sends ajax post data to server and receives a response. During development, there can be two responses - one regular (this is not th
Configure jQuery ajax setup as follows:
$.ajaxSetup({ error: handleXhrError });
where handleXhrError function look like this:
handleXhrError
function handleXhrError(xhr) { document.open(); document.write(xhr.responseText); document.close(); }