Side navigation
#11575 closed bug (invalid)
Opened April 10, 2012 12:15PM UTC
Closed April 25, 2012 08:27AM UTC
Last modified April 25, 2012 07:15PM UTC
Cross-Domain ajax request error handler does not get called in Firefox 11
Reported by: | aka_tizz@yahoo.com | Owned by: | aka_tizz@yahoo.com |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I have the following AJAX JSONP request, to a third-party free webservice (success and error actions simplified):
$.ajax({ type: 'get', url: 'http://openapi.ro/api/companies/123456789.json', dataType: 'jsonp', success: function(data) { alert(data.name); }, error: function(data) { alert('fail') } });
If the call fails (404 for instance), the error callback is not invoked in Firefox 11. In Chrome, Safari (Windows) and IE9 the callback is invoked properly.
Also, in the Firebug tools, the 404 response is visible.
To workaround this, the 'timeout' parameter needs to be added. With the timer parameter present, the error callback is fired normally, after the timeout has elapsed
The behaviour has always been reproduced under Firefox 11 (several computers as well) with the above AJAX request
Attachments (0)
Change History (3)
Changed April 10, 2012 12:38PM UTC by comment:1
owner: | → aka_tizz@yahoo.com |
---|---|
status: | new → pending |
Changed April 25, 2012 08:27AM UTC by comment:2
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!
Changed April 25, 2012 07:15PM UTC by comment:3
Issue is no longer present in Firefox 12.
Also, good work jQuery team!
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.