Is it possible to continue an aborted AJAX (jqXHR) request?
Something like:
$(document).ajaxSend(function(event, jqXHR, ajaxOptions) {
if(/* it enters my conditions */) {
$.current_request = jQuery.extend(true, {}, jqXHR);
jqXHR.abort();
}
}
// some time in the future
$.ajax($.current_request)
This is not working, and I can see one problem that I do not know how to solve: no options are set when sending the request again.
Give it a try (not tested)