Side navigation
#14726 closed bug (notabug)
Opened January 24, 2014 06:35PM UTC
Closed March 01, 2014 10:38PM UTC
Last modified March 10, 2014 04:49PM UTC
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
Attachments (0)
Change History (5)
Changed March 01, 2014 10:36PM UTC by comment:1
| owner: | → Kakao |
|---|---|
| status: | new → pending |
Changed March 01, 2014 10:38PM UTC by comment:2
| 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.
Changed March 10, 2014 04:24PM UTC by comment:3
Replying to [comment:2 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?
Changed March 10, 2014 04:45PM UTC by comment:4
Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. -- https://api.jquery.com/jQuery.ajax/
Can you provide a jsFiddle that fails?