I am making a request and then right after it I abort.
var x = $.get(url, function (d, e, xhr) { alert(d); });
x.abort();
The problem is that it executes the success function and returns empty data… (example here)
Is there a jQuery method to abort? or Is there a way to check if the xhr was aborted?
I found here that the
xhrwill return with status0. Seems to be a jQuery 1.4+ bug. On 1.3 it called the error handler.