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

_counter
Defined by
_deadScripts
Defined by

Methods

_addDeadScript(ioArgs)
Defined by
sets up an entry in the deadScripts array.
ParameterTypeDescription
ioArgsObject
_canAttach(ioArgs)
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.
ParameterTypeDescription
ioArgsObject
_deferredCancel(dfd)
Defined by
canceller function for dojo._ioSetArgs call.
ParameterTypeDescription
dfdDeferred
_deferredError(error, dfd)
Defined by
errHandler function for dojo._ioSetArgs call.
ParameterTypeDescription
errorError
dfdDeferred
_deferredOk(dfd)
Defined by
okHandler function for dojo._ioSetArgs call.
ParameterTypeDescription
dfdDeferred
_ioCheck(dfd)
Defined by
inflight check function to see if IO finished.
ParameterTypeDescription
dfdDeferred
_makeScriptDeferred(args)
Defined by
sets up a Deferred object for an IO request.
ParameterTypeDescription
argsObject
Returns: dojo.Deferred
_resHandle(dfd)
Defined by
inflight function to handle a completed response.
ParameterTypeDescription
dfdDeferred
_validCheck(dfd)
Defined by
inflight check function to see if dfd is still valid.
ParameterTypeDescription
dfdDeferred
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.
ParameterTypeDescription
idString
urlString
frameDocumentDocument
Optional.
get(args)
Defined by
sends a get request using a dynamically created script tag.
ParameterTypeDescription
argsdojo.io.script.__ioArgs
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.
ParameterTypeDescription
idString
frameDocumentDocument
Optional.