Side navigation
#9613 closed bug (invalid)
Opened June 18, 2011 11:53AM UTC
Closed June 29, 2011 10:13PM UTC
Last modified March 14, 2012 03:22AM UTC
$.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 ;)
Attachments (0)
Change History (3)
Changed June 29, 2011 07:11PM UTC by comment:1
| cc: | → jaubourg |
|---|---|
| component: | unfiled → ajax |
| priority: | undecided → low |
| status: | new → open |
Changed June 29, 2011 10:13PM UTC by comment:2
| keywords: | → needsdocs |
|---|---|
| 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.
Changed July 07, 2011 04:50AM UTC by comment:3
| keywords: | needsdocs → neededdocs |
|---|
Docs updated: http://api.jquery.com/jQuery.ajax/
Confirmed. Can we detect 400s with jsonp tho?