#14726 closed bug (notabug)
NS_ERROR_FAILURE when asynchronously getting script
Reported by: | Kakao | Owned by: | Kakao |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.10.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I'm getting this error
"[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://code.jquery.com/jquery-1.10.2.min.js :: .send :: line 6" data: no]"
When executing this request
$.ajax({ url: 'https://www.paypalobjects.com/js/external/dg.js', datatype: 'script', async: false, cache: true, //ifModified: true, type: 'GET', data: null, error: function(xhr, textStatus, errorThrown) { console.log(xhr, textStatus, errorThrown); } })
Firefox 26 in Fedora 20
Change History (5)
comment:1 Changed 10 years ago by
Owner: | set to Kakao |
---|---|
Status: | new → pending |
comment:2 follow-up: 3 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | pending → closed |
Oh never mind, I see the problem. You can't get an external script synchronously, and that is documented on the ajax page.
comment:3 Changed 10 years ago by
Replying to dmethvin:
Oh never mind, I see the problem. You can't get an external script synchronously, and that is documented on the ajax page.
I can't find it. Could you post a link?
comment:4 Changed 10 years ago by
Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. -- https://api.jquery.com/jQuery.ajax/
Note: See
TracTickets for help on using
tickets.
Can you provide a jsFiddle that fails?