#9613 closed bug (invalid)
$.ajax is not launching error callback on 400 Bad Request when jsonp request is made
Reported by: | Somebi | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | ajax | Version: | 1.6.1 |
Keywords: | neededdocs | Cc: | jaubourg |
Blocked by: | Blocking: |
Description
Here is sample
Here is working sample:
Thanks ;)
Change History (3)
comment:1 Changed 12 years ago by
Cc: | jaubourg added |
---|---|
Component: | unfiled → ajax |
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 12 years ago by
Keywords: | needsdocs added |
---|---|
Resolution: | → invalid |
Status: | open → closed |
What I don't understand is why the doc says "Note: Prior to jQuery 1.5, this handler was not called for cross-domain script and JSONP requests" while the correct sentence is "Note: this handler IS not called for cross-domain script and JSONP requests" ;)
So, yes, the answer is no. jQuery doesn't detect HTTP errors for cross-domain script and jsonp requests as is (should be) documented.
comment:3 Changed 12 years ago by
Keywords: | neededdocs added; needsdocs removed |
---|
Docs updated: http://api.jquery.com/jQuery.ajax/
Note: See
TracTickets for help on using
tickets.
Confirmed. Can we detect 400s with jsonp tho?