Use XMLHttpRequest (XHR) objects to interact with servers. You retrieve data from a URL without having to do a full page refresh. enables a Web page to update just part of a page without disrupting the user is doing.
Use XMLHttpRequest (XHR) objects to interact with servers. You retrieve data from a URL without having to do a full page refresh. enables a Web page to update just part of a page without disrupting the user is doing.
(abort this)
Method.
The XMLHttpRequest.abort() method aborts the request if it has
been sent. When a request is aborted, its web.readyState
is
to xml.XMLHttpRequest.UNSENT
(0) and the request's web.status
is set to 0.
XMLHttpRequest.abort()
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort
Method. The XMLHttpRequest.abort() method aborts the request if it has been sent. When a request is aborted, its `web.readyState` is to `xml.XMLHttpRequest.UNSENT` (0) and the request's `web.status` is set to 0. `XMLHttpRequest.abort()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort`
(channel this)
Property.
XMLHttpRequest.channel is an nsIChannel that used by the object performing the request. This is null if the channel hasn't been yet. In the case of a multi-part request, this is the initial not the different parts in the multi-part request. Requires elevated to access.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/channel
Property. XMLHttpRequest.channel is an nsIChannel that used by the object performing the request. This is null if the channel hasn't been yet. In the case of a multi-part request, this is the initial not the different parts in the multi-part request. Requires elevated to access. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/channel`
Constructor.
The XMLHttpRequest() constructor creates a new xml.XMLHttpRequest
.
None.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/XMLHttpRequest
Constructor. The XMLHttpRequest() constructor creates a new `xml.XMLHttpRequest`. None. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/XMLHttpRequest`
(get-all-response-headers this)
Method.
The xml.XMLHttpRequest
method getAllResponseHeaders() returns
the response headers, separated by CRLF, as a string, or returns
if no response has been received.
var headers = XMLHttpRequest.getAllResponseHeaders();
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders
Method. The `xml.XMLHttpRequest` method getAllResponseHeaders() returns the response headers, separated by CRLF, as a string, or returns if no response has been received. `var headers = XMLHttpRequest.getAllResponseHeaders();` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders`
(get-response-header this header-name)
Method.
The xml.XMLHttpRequest
method getResponseHeader() returns the
containing the text of a particular header's value.
var myHeader = XMLHttpRequest.getResponseHeader(headerName);
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getResponseHeader
Method. The `xml.XMLHttpRequest` method getResponseHeader() returns the containing the text of a particular header's value. `var myHeader = XMLHttpRequest.getResponseHeader(headerName);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getResponseHeader`
(moz-anon this)
Property.
XMLHttpRequest.mozAnon is a boolean. If true, the request will sent without cookies or authentication headers.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozAnon
Property. XMLHttpRequest.mozAnon is a boolean. If true, the request will sent without cookies or authentication headers. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozAnon`
(moz-background-request this)
Property.
XMLHttpRequest.mozBackgroundRequest is a Boolean, indicating the object represents a background service request.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozBackgroundRequest
Property. XMLHttpRequest.mozBackgroundRequest is a Boolean, indicating the object represents a background service request. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozBackgroundRequest`
(moz-response-array-buffer this)
Property.
Is an ArrayBuffer response to the request, written as a JavaScript array.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozResponseArrayBuffer
Property. Is an ArrayBuffer response to the request, written as a JavaScript array. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozResponseArrayBuffer`
(moz-system this)
Property.
mozSystem is a boolean. If true, the same origin policy is not on the request.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozSystem
Property. mozSystem is a boolean. If true, the same origin policy is not on the request. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozSystem`
(multipart this)
Property.
This boolean indicates if the response is expected to be a stream possibly multiple XML documents.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/multipart
Property. This boolean indicates if the response is expected to be a stream possibly multiple XML documents. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/multipart`
(onreadystatechange this)
Property.
An web.EventHandler
that is called whenever the readyState
changes. The callback is called from the user interface thread.
XMLHttpRequest.onreadystatechange property contains the event
to be called when the readystatechange event is fired, that is
time the web.readyState
property of the xml.XMLHttpRequest
XMLHttpRequest.onreadystatechange = callback;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange
Property. An `web.EventHandler` that is called whenever the readyState changes. The callback is called from the user interface thread. XMLHttpRequest.onreadystatechange property contains the event to be called when the readystatechange event is fired, that is time the `web.readyState` property of the `xml.XMLHttpRequest` `XMLHttpRequest.onreadystatechange = callback;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange`
(open this & args)
Method.
The xml.XMLHttpRequest
method open() initializes a newly-created
or re-initializes an existing one.
XMLHttpRequest.open(method, url) XMLHttpRequest.open(method, url, async) XMLHttpRequest.open(method, url, async, user) XMLHttpRequest.open(method, url, async, user, password)
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open
Method. The `xml.XMLHttpRequest` method open() initializes a newly-created or re-initializes an existing one. `XMLHttpRequest.open(method, url) XMLHttpRequest.open(method, url, async) XMLHttpRequest.open(method, url, async, user) XMLHttpRequest.open(method, url, async, user, password)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open`
(open-request this & args)
Method.
This Mozilla-specific method is available only from within privileged and is only called from a C++ context in order to initialize XMLHttpRequest.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/openRequest
Method. This Mozilla-specific method is available only from within privileged and is only called from a C++ context in order to initialize XMLHttpRequest. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/openRequest`
(override-mime-type this mime-type)
Method.
The xml.XMLHttpRequest
method overrideMimeType() specifies
MIME type other than the one provided by the server to be used
when interpreting the data being transferred in a request.
XMLHttpRequest.overrideMimeType(mimeType)
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/overrideMimeType
Method. The `xml.XMLHttpRequest` method overrideMimeType() specifies MIME type other than the one provided by the server to be used when interpreting the data being transferred in a request. `XMLHttpRequest.overrideMimeType(mimeType)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/overrideMimeType`
(ready-state this)
Property.
The XMLHttpRequest.readyState property returns the state an XMLHttpRequest is in. An XHR client exists in one of the following states:
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState
Property. The XMLHttpRequest.readyState property returns the state an XMLHttpRequest is in. An XHR client exists in one of the following states: See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState`
(response this)
Property.
The xml.XMLHttpRequest
response property returns the response's
content as an web.ArrayBuffer
, web.Blob
, web.Document
,
web.Object
, or dom.DOMString
, depending on the value of the
web.responseType
property.
var body = XMLHttpRequest.response;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response
Property. The `xml.XMLHttpRequest` response property returns the response's content as an `web.ArrayBuffer`, `web.Blob`, `web.Document`, `web.Object`, or `dom.DOMString`, depending on the value of the `web.responseType` property. `var body = XMLHttpRequest.response;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response`
(response-text this)
Property.
The read-only xml.XMLHttpRequest
property responseText returns
text received from a server following a request being sent.
var resultText = XMLHttpRequest.responseText;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseText
Property. The read-only `xml.XMLHttpRequest` property responseText returns text received from a server following a request being sent. `var resultText = XMLHttpRequest.responseText;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseText`
(response-type this)
Property.
The xml.XMLHttpRequest
property responseType is an enumerated
value specifying the type of data contained in the response.
`var type = XMLHttpRequest.responseType;
XMLHttpRequest.responseType = type;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType
Property. The `xml.XMLHttpRequest` property responseType is an enumerated value specifying the type of data contained in the response. `var type = XMLHttpRequest.responseType; XMLHttpRequest.responseType = type;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType`
(response-url this)
Property.
The read-only XMLHttpRequest.responseURL property returns the URL of the response or the empty string if the URL is null. If URL is returned, any URL fragment present in the URL will be away. The value of responseURL will be the final URL obtained any redirects.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseURL
Property. The read-only XMLHttpRequest.responseURL property returns the URL of the response or the empty string if the URL is null. If URL is returned, any URL fragment present in the URL will be away. The value of responseURL will be the final URL obtained any redirects. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseURL`
(response-xml this)
Property.
The XMLHttpRequest.responseXML read-only property returns a web.Document
the HTML or XML retrieved by the request; or null if the request
unsuccessful, has not yet been sent, or if the data can't be
as XML or HTML.
var data = XMLHttpRequest.responseXML;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseXML
Property. The XMLHttpRequest.responseXML read-only property returns a `web.Document` the HTML or XML retrieved by the request; or null if the request unsuccessful, has not yet been sent, or if the data can't be as XML or HTML. `var data = XMLHttpRequest.responseXML;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseXML`
(send this body)
Method.
The xml.XMLHttpRequest
method send() sends the request to the
XMLHttpRequest.send(body)
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send
Method. The `xml.XMLHttpRequest` method send() sends the request to the `XMLHttpRequest.send(body)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send`
(send-as-binary this binary-string)
Method.
The obsolete xml.XMLHttpRequest
method sendAsBinary() is a
of the web.send()
method that sends binary data. The send()
now supports binary data and should now be used instead.
XMLHttpRequest.sendAsBinary(binaryString);
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/sendAsBinary
Method. The obsolete `xml.XMLHttpRequest` method sendAsBinary() is a of the `web.send()` method that sends binary data. The send() now supports binary data and should now be used instead. `XMLHttpRequest.sendAsBinary(binaryString);` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/sendAsBinary`
(set-channel! this val)
Property.
XMLHttpRequest.channel is an nsIChannel that used by the object performing the request. This is null if the channel hasn't been yet. In the case of a multi-part request, this is the initial not the different parts in the multi-part request. Requires elevated to access.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/channel
Property. XMLHttpRequest.channel is an nsIChannel that used by the object performing the request. This is null if the channel hasn't been yet. In the case of a multi-part request, this is the initial not the different parts in the multi-part request. Requires elevated to access. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/channel`
(set-moz-anon! this val)
Property.
XMLHttpRequest.mozAnon is a boolean. If true, the request will sent without cookies or authentication headers.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozAnon
Property. XMLHttpRequest.mozAnon is a boolean. If true, the request will sent without cookies or authentication headers. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozAnon`
(set-moz-background-request! this val)
Property.
XMLHttpRequest.mozBackgroundRequest is a Boolean, indicating the object represents a background service request.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozBackgroundRequest
Property. XMLHttpRequest.mozBackgroundRequest is a Boolean, indicating the object represents a background service request. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozBackgroundRequest`
(set-moz-response-array-buffer! this val)
Property.
Is an ArrayBuffer response to the request, written as a JavaScript array.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozResponseArrayBuffer
Property. Is an ArrayBuffer response to the request, written as a JavaScript array. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozResponseArrayBuffer`
(set-moz-system! this val)
Property.
mozSystem is a boolean. If true, the same origin policy is not on the request.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozSystem
Property. mozSystem is a boolean. If true, the same origin policy is not on the request. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/mozSystem`
(set-multipart! this val)
Property.
This boolean indicates if the response is expected to be a stream possibly multiple XML documents.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/multipart
Property. This boolean indicates if the response is expected to be a stream possibly multiple XML documents. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/multipart`
(set-onreadystatechange! this val)
Property.
An web.EventHandler
that is called whenever the readyState
changes. The callback is called from the user interface thread.
XMLHttpRequest.onreadystatechange property contains the event
to be called when the readystatechange event is fired, that is
time the web.readyState
property of the xml.XMLHttpRequest
XMLHttpRequest.onreadystatechange = callback;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange
Property. An `web.EventHandler` that is called whenever the readyState changes. The callback is called from the user interface thread. XMLHttpRequest.onreadystatechange property contains the event to be called when the readystatechange event is fired, that is time the `web.readyState` property of the `xml.XMLHttpRequest` `XMLHttpRequest.onreadystatechange = callback;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange`
(set-ready-state! this val)
Property.
The XMLHttpRequest.readyState property returns the state an XMLHttpRequest is in. An XHR client exists in one of the following states:
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState
Property. The XMLHttpRequest.readyState property returns the state an XMLHttpRequest is in. An XHR client exists in one of the following states: See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState`
(set-request-header this header value)
Method.
The xml.XMLHttpRequest
method setRequestHeader() sets the value
an HTTP request header. When using setRequestHeader(), you must
it after calling web.open()
, but before calling web.send()
.
this method is called several times with the same header, the
are merged into one single request header.
XMLHttpRequest.setRequestHeader(header, value)
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader
Method. The `xml.XMLHttpRequest` method setRequestHeader() sets the value an HTTP request header. When using setRequestHeader(), you must it after calling `web.open()`, but before calling `web.send()`. this method is called several times with the same header, the are merged into one single request header. `XMLHttpRequest.setRequestHeader(header, value)` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader`
(set-response-type! this val)
Property.
The xml.XMLHttpRequest
property responseType is an enumerated
value specifying the type of data contained in the response.
`var type = XMLHttpRequest.responseType;
XMLHttpRequest.responseType = type;`
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType
Property. The `xml.XMLHttpRequest` property responseType is an enumerated value specifying the type of data contained in the response. `var type = XMLHttpRequest.responseType; XMLHttpRequest.responseType = type;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType`
(set-status! this val)
Property.
The read-only XMLHttpRequest.status property returns the numerical status code of the XMLHttpRequest's response.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/status
Property. The read-only XMLHttpRequest.status property returns the numerical status code of the XMLHttpRequest's response. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/status`
(set-timeout! this val)
Property.
The XMLHttpRequest.timeout property is an unsigned long representing number of milliseconds a request can take before automatically terminated. The default value is 0, which means there is no timeout. shouldn't be used for synchronous XMLHttpRequests requests used a document environment or it will throw an InvalidAccessError When a timeout happens, a timeout event is fired.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout
Property. The XMLHttpRequest.timeout property is an unsigned long representing number of milliseconds a request can take before automatically terminated. The default value is 0, which means there is no timeout. shouldn't be used for synchronous XMLHttpRequests requests used a document environment or it will throw an InvalidAccessError When a timeout happens, a timeout event is fired. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout`
(set-with-credentials! this val)
Property.
The XMLHttpRequest.withCredentials property is a web.Boolean
indicates whether or not cross-site Access-Control requests should
made using credentials such as cookies, authorization headers
TLS client certificates. Setting withCredentials has no effect
same-site requests.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials
Property. The XMLHttpRequest.withCredentials property is a `web.Boolean` indicates whether or not cross-site Access-Control requests should made using credentials such as cookies, authorization headers TLS client certificates. Setting withCredentials has no effect same-site requests. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials`
(status this)
Property.
The read-only XMLHttpRequest.status property returns the numerical status code of the XMLHttpRequest's response.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/status
Property. The read-only XMLHttpRequest.status property returns the numerical status code of the XMLHttpRequest's response. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/status`
(status-text this)
Property.
The read-only XMLHttpRequest.statusText property returns a DOMString the response's status message as returned by the HTTP server. XMLHTTPRequest.status which indicates a numerical status code, property contains the text of the response status, such as "OK" "Not Found". If the request's readyState is in UNSENT or OPENED the value of statusText will be an empty string.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/statusText
Property. The read-only XMLHttpRequest.statusText property returns a DOMString the response's status message as returned by the HTTP server. XMLHTTPRequest.status which indicates a numerical status code, property contains the text of the response status, such as \"OK\" \"Not Found\". If the request's readyState is in UNSENT or OPENED the value of statusText will be an empty string. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/statusText`
(timeout this)
Property.
The XMLHttpRequest.timeout property is an unsigned long representing number of milliseconds a request can take before automatically terminated. The default value is 0, which means there is no timeout. shouldn't be used for synchronous XMLHttpRequests requests used a document environment or it will throw an InvalidAccessError When a timeout happens, a timeout event is fired.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout
Property. The XMLHttpRequest.timeout property is an unsigned long representing number of milliseconds a request can take before automatically terminated. The default value is 0, which means there is no timeout. shouldn't be used for synchronous XMLHttpRequests requests used a document environment or it will throw an InvalidAccessError When a timeout happens, a timeout event is fired. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout`
(upload this)
Property.
The xml.XMLHttpRequest
upload property returns an xml.XMLHttpRequestUpload
that can be observed to monitor an upload's progress.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/upload
Property. The `xml.XMLHttpRequest` upload property returns an `xml.XMLHttpRequestUpload` that can be observed to monitor an upload's progress. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/upload`
(with-credentials this)
Property.
The XMLHttpRequest.withCredentials property is a web.Boolean
indicates whether or not cross-site Access-Control requests should
made using credentials such as cookies, authorization headers
TLS client certificates. Setting withCredentials has no effect
same-site requests.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials
Property. The XMLHttpRequest.withCredentials property is a `web.Boolean` indicates whether or not cross-site Access-Control requests should made using credentials such as cookies, authorization headers TLS client certificates. Setting withCredentials has no effect same-site requests. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close