Functiondojo.xhrDelete

<script src="../../js/dojo.js"></script>
defined in dojo/_base/xhr.js

Sends an HTTP DELETE request to the server.

Usage

function (/*dojo.__XhrArgs*/ args) (view source)
parametertypedescription
argsdojo.__XhrArgsIn addition to the properties listed for the dojo._IoArgs type, the following properties are allowed for dojo.xhr* methods.
fieldtypedescription
.contentObjectOptional. Contains properties with string values. These properties will be serialized as name1=value2 and passed in the request.
.errorFunctionOptional. function(response, ioArgs){}. response is an Object, ioArgs is of type dojo.__IoCallbackArgs. The error function will be called in an error case.
.formDOMNodeOptional. DOM node for a form. Used to extract the form values and send to the server.
.handleFunctionOptional. function(response, ioArgs){}. response is an Object, ioArgs is of type dojo.__IoCallbackArgs. The handle function will be called in either the successful or error case. For the load, error and handle functions, the ioArgs object will contain the following properties:
.handleAsStringOptional. Acceptable values are: text (default), json, json-comment-optional, json-comment-filtered, javascript, xml
.headersObjectOptional. Additional HTTP headers to send in the request.
.loadFunctionOptional. function(response, ioArgs){}. response is an Object, ioArgs is of type dojo.__IoCallbackArgs. The load function will be called on a successful response.
.preventCacheBooleanOptional. 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.
.syncBooleanOptional. false is default. Indicates whether the request should be a synchronous (blocking) request.
.timeoutIntegerOptional. Milliseconds to wait for the response. If this time passes, the then error callbacks are called.
.urlStringURL to server endpoint.