Login Register Help
API Documentation
Choose a stylesheet:

Constructordojo.__IoArgs

dojo.require("dojo._base.xhr");

 

(NB: This is a named arguments object and not meant to be instantiated.)

Jump to PropertiesFunctionsBack to top

Functionerror(response: Object, ioArgs: dojo.__IoCallbackArgs)
This function will be called when the request fails due to a network or server error, the url is invalid, etc. It will also be called if the load or handle callback throws an exception, unless djConfig.debugAtAllCosts is true. This allows deployed applications to continue to run even when a logic error happens in the callback, while making it easier to troubleshoot while in debug mode.
Functionhandle(loadOrError: String, response: Object, ioArgs: dojo.__IoCallbackArgs)
This function will be called at the end of every request, whether or not an error occurs.
Functionload(response: Object, ioArgs: dojo.__IoCallbackArgs)
This function will be called on a successful HTTP response code.

Jump to FunctionsPropertiesBack to top

Contains properties with string values. These properties will be serialized as name1=value2 and passed in the request.
DOM node for a form. Used to extract the form values and send to the server.
Acceptable values depend on the type of IO transport (see specific IO calls for more information). rawBody: String? Sets the raw body for an HTTP request. If this is used, then the content property is ignored. This is mostly useful for HTTP methods that have a body to their requests, like PUT or POST. This property can be used instead of postData and putData for dojo.rawXhrPost and dojo.rawXhrPut respectively.
Set this explicitly to false to prevent publishing of topics related to IO operations. Otherwise, if djConfig.ioPublish is set to true, topics will be published via dojo.publish for different phases of an IO operation. See dojo.__IoPublish for a list of topics that are published.
Default is false. If true, then a "dojo.preventCache" parameter is sent in the request with a value that changes with each request (timestamp). Useful only with GET-type requests.
Milliseconds to wait for the response. If this time passes, the then error callbacks are called.
URL to server endpoint.