background preloader

WebData Service

Facebook Twitter

Making cross domain JavaScript requests using XMLHttpRequest or XDomainRequest. Dojo.io.script view /dojo/io/script. Deprecated - See dojo/request/script instead.

dojo.io.script view /dojo/io/script

This is an alternate IO mechanism to dojo.xhrGet that has the capability of doing cross-site data access. It accomplishes this feat by doing an IO call via a dynamically inserted <SCRIPT> tag into your web page. Aside from being able to do cross-site data access, this implementation provides support for JSONP which is a way callback names can be added to a script return and executed appropriately. Not all services that provide script-tag data formats support JSONP, but many do and it makes it very flexible. The dojo.io.script package can only make requests that are effectively 'GET' style requests with query parameters.