Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13337 closed bug (invalid)

ajaxError() called by success code 200 !?!?

Reported by: glueck@… Owned by: glueck@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.0
Keywords: Cc:
Blocked by: Blocking:

Description

$(document).ajaxError(function(e, xhr, settings, exception) {

switch(xhr.status){

case 200: kein Fehler, JQuery 1.9.0

break;

}

After I switch to JQuery 1.9.0, the ajaxError Callback-Function will also called by success (code 200). The workaround is to catch the code 200 an do nothing. But I think it would be better, it works correct.

Greetings Frank Glück

Change History (2)

comment:1 Changed 7 years ago by dmethvin

Owner: set to glueck@…
Status: newpending

Please provide a test case. There are other reasons the error handler might be called, for example you have specified dataType: "json" but the server does not return valid JSON. If you have not read the upgrade guide please do so:

http://jquery.com/upgrade-guide/1.9/

comment:2 Changed 7 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.