Opened 10 years ago
Closed 10 years ago
#13337 closed bug (invalid)
ajaxError() called by success code 200 !?!?
Reported by: | Owned by: | ||
---|---|---|---|
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 10 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
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!
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/