Bug Tracker

Opened 13 years ago

Closed 12 years ago

Last modified 11 years ago

#6173 closed bug (duplicate)

$.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:



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

Change History (1)

comment:1 Changed 12 years ago by snover

Priority: undecided
Resolution: duplicate
Status: newclosed

Duplicate of #6060.

Note: See TracTickets for help on using tickets.