Adds the script transport (JSONP) as an XHR plugin for the given site. See dojox.io.script for more information on the transport. Note, that JSONP is not a secure transport, by loading data from a third-party site using JSONP the site has full access to your JavaScript environment.
Parameter | Type | Description |
---|---|---|
url | String | Url prefix of the site which can handle JSONP requests. |
callbackParamName | String | |
httpAdapter | Function |
Optional This allows for adapting HTTP requests that could not otherwise be sent with JSONP, so you can use a convention for headers and PUT/DELETE methods. |
See the dojox/io/xhrScriptPlugin reference documentation for more information.