Skip to main content

Bug Tracker

Side navigation

#13337 closed bug (invalid)

Opened January 28, 2013 02:53PM UTC

Closed February 26, 2013 08:59AM UTC

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

Reported by: glueck@dozent.net Owned by: glueck@dozent.net
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

Attachments (0)
Change History (2)

Changed February 12, 2013 03:51AM UTC by dmethvin comment:1

owner: → glueck@dozent.net
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/

Changed February 26, 2013 08:59AM UTC by trac-o-bot comment:2

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!