Opened 10 years ago

Closed 8 years ago

Last modified 8 years ago

#14063 closed enhancement (fixed) support delayed callbacks or throw error

Reported by: hurrymaplelad Owned by: Bryan Forbes
Priority: high Milestone: 1.8
Component: IO Version: 1.6.1
Keywords: Cc:
Blocked By: Blocking:


Full example loading google maps here:

JSFiddle Example:

It appears that expects the immediately returned script to call the JSONP callback. In the google maps example, the loaded script does some additional work (loads more files) before calling the global callback. By then, has removed its global callback, and neither the load nor the error callback is invoked.

Ideally will support the google maps delayed callback. If that's deemed outside io.script's scope, at least call the error callback and let me know that the loaded script didn't call the expected jsonp callback.

Change History (4)

comment:1 Changed 10 years ago by bill

Owner: changed from James Burke to Bryan Forbes

Bulk change to reassign IO tickets to Bryan, since he is working on new dojo/request module. Some of these tickets should probably be closed as already fixed, invalid, or wontfix.

comment:2 Changed 9 years ago by bishop

I think this one can be closed. This seems to work properly in 1.8.0:

// Script is required from 'dojo/request/script'
    { jsonp:'callback' }
    function (data) {
    function (err) {
        window.console.log('Whoops' + err);

comment:3 Changed 8 years ago by Bryan Forbes

Resolution: fixed
Status: newclosed

Since it has been reported as fixed, I'm marking as such.

comment:4 Changed 8 years ago by bill

Milestone: tbd1.8
Note: See TracTickets for help on using tickets.