Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#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 6 years ago by dmethvin

Owner: set to Kakao
Status: newpending

Can you provide a jsFiddle that fails?

comment:2 Changed 6 years ago by dmethvin

Resolution: notabug
Status: pendingclosed

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 in reply to:  2 Changed 6 years ago by Kakao

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 6 years ago by dmethvin

Cross-domain requests and dataType: "jsonp" requests do not support synchronous operation. -- https://api.jquery.com/jQuery.ajax/

comment:5 Changed 6 years ago by dmethvin

#14878 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.