Side navigation
#6173 closed bug (duplicate)
Opened February 25, 2010 11:37AM UTC
Closed October 09, 2010 04:13AM UTC
Last modified March 14, 2012 02:12AM UTC
$.ajax() doesn't fire error-callback when manually aborted
Reported by: | dpree | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | 1.4.2 |
Component: | ajax | Version: | |
Keywords: | ajax error xhr callback http status | Cc: | |
Blocked by: | Blocking: |
Description
example:
start a xhr like:
var myxhr = $.ajax({
[...]
success: function(data, textStatus, xhr){
console.log('success');
console.log('xhr.status: '+xhr.status);
},
error: function() {
console.log('error');
}
});
hit ESC or cancel via calling myxhr.abort()
console-output => "success" and "xhr.status: 0"
i would expect instead (and so it was in jquery1.3.2) => "error"
tested with jquery-1.4.2 using ff3.0.18 and ff3.5.8
Attachments (0)
Change History (1)
Changed October 09, 2010 04:13AM UTC by comment:1
priority: | → undecided |
---|---|
resolution: | → duplicate |
status: | new → closed |
Duplicate of #6060.