This is the gut of my ajax call.
function ajax(path, requestData, successCallBack, errorCallBack) {
return $.ajax({
error: function(xhr, textStatus, errorThrown)
Γ§(xhr, textStatus, errorThrown);
},
success: function(json){
successCallBack(json);
}
});
}
When an ajax call occurs and the user clicks on the link on the page, my errorCallBack is called. A user roaming will cause the ajax call to be killed. When an error occurs on the server, the errorCallBack callback is also called.
Is there a way to differentiate the two?
Thanks!
Kevin
source
share