//dojotoolkit.org/api/1.6/dojo.io.script
dojo.io.script (version 1.6)
Property Summary
Method Summary
- _addDeadScript(ioArgs) sets up an entry in the deadScripts array.
- _canAttach(ioArgs) provides an override of dojo.io.script._canAttach to check for
the existence of a the args.frameDoc property.
- _deferredCancel(dfd) canceller function for dojo._ioSetArgs call.
- _deferredError(error, dfd) errHandler function for dojo._ioSetArgs call.
- _deferredOk(dfd) okHandler function for dojo._ioSetArgs call.
- _ioCheck(dfd) inflight check function to see if IO finished.
- _makeScriptDeferred(args) sets up a Deferred object for an IO request.
- _resHandle(dfd) inflight function to handle a completed response.
- _validCheck(dfd) inflight check function to see if dfd is still valid.
- attach(id, url, frameDocument) creates a new <script> tag pointing to the specified URL and
adds it to the document.
- get(args) sends a get request using a dynamically created script tag.
- remove(id, frameDocument) removes the script element with the given id, from the given frameDocument.
Properties
Methods
Defined by
sets up an entry in the deadScripts array.
| Parameter | Type | Description |
|---|
| ioArgs | Object | |
Defined by
provides an override of dojo.io.script._canAttach to check for
the existence of a the args.frameDoc property. If it is there, and it is a string,
not a document, then create the iframe with an ID of frameDoc, and use that for the calls.
If frameDoc is a document, then dojox.io.scriptFrame should not get involved.
| Parameter | Type | Description |
|---|
| ioArgs | Object | |
Defined by
canceller function for dojo._ioSetArgs call.
| Parameter | Type | Description |
|---|
| dfd | Deferred | |
_deferredError(error, dfd) Defined by
errHandler function for dojo._ioSetArgs call.
| Parameter | Type | Description |
|---|
| error | Error | |
| dfd | Deferred | |
Defined by
okHandler function for dojo._ioSetArgs call.
| Parameter | Type | Description |
|---|
| dfd | Deferred | |
Defined by
inflight check function to see if IO finished.
| Parameter | Type | Description |
|---|
| dfd | Deferred | |
_makeScriptDeferred(args) Defined by
sets up a Deferred object for an IO request.
| Parameter | Type | Description |
|---|
| args | Object | |
Defined by
inflight function to handle a completed response.
| Parameter | Type | Description |
|---|
| dfd | Deferred | |
Defined by
inflight check function to see if dfd is still valid.
| Parameter | Type | Description |
|---|
| dfd | Deferred | |
attach(id, url, frameDocument) Defined by
creates a new <script> tag pointing to the specified URL and
adds it to the document.
Attaches the script element to the DOM. Use this method if you
just want to attach a script to the DOM and do not care when or
if it loads.
| Parameter | Type | Description |
|---|
| id | String | |
| url | String | |
| frameDocument | Document | Optional. |
Defined by
sends a get request using a dynamically created script tag.
remove(id, frameDocument) Defined by
removes the script element with the given id, from the given frameDocument.
If no frameDocument is passed, the current document is used.
| Parameter | Type | Description |
|---|
| id | String | |
| frameDocument | Document | Optional. |