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 readyState
is changed
XMLHttpRequest.UNSENT
(0) and the request's status
code is
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 `readyState` is changed `XMLHttpRequest.UNSENT` (0) and the request's `status` code is to 0. `XMLHttpRequest.abort()` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort`
(channel this)
Property.
[Read Only] [Draft]
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. [Read Only] [Draft] 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 & args)
Constructor.
The XMLHttpRequest() constructor creates a new web.XMLHttpRequest
.
None.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/XMLHttpRequest
Constructor. The XMLHttpRequest() constructor creates a new `web.XMLHttpRequest`. None. See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/XMLHttpRequest`
(get-all-response-headers this)
Method.
The web.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 `web.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 web.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 `web.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`
(init this & args)
Method.
Initializes the object for use from C++ code.
Method. Initializes the object for use from C++ code.
(moz-anon this)
Property.
[Read Only] [Draft]
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. [Read Only] [Draft] 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.
[Draft]
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. [Draft] 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.
[Read Only] [Draft]
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. [Read Only] [Draft] 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.
[Read Only] [Draft]
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. [Read Only] [Draft] 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.
[Non Standard]
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. [Non Standard] 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 EventHandler
that is called whenever the readyState attribute
The callback is called from the user interface thread. The XMLHttpRequest.onreadystatechange
contains the event handler to be called when the readystatechange
is fired, that is every time the readyState
property of the
changes.
XMLHttpRequest.onreadystatechange = callback;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange
Property. An `EventHandler` that is called whenever the readyState attribute The callback is called from the user interface thread. The XMLHttpRequest.onreadystatechange contains the event handler to be called when the readystatechange is fired, that is every time the `readyState` property of the changes. `XMLHttpRequest.onreadystatechange = callback;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange`
(ontimeout this)
Property.
Is an EventHandler that is called whenever the request times
Property. Is an EventHandler that is called whenever the request times
(open this & args)
Method.
The web.XMLHttpRequest
method open() initializes a newly-created
or re-initializes an existing one.
XMLHttpRequest.open(method, url[, async[, user[, password]]])
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open
Method. The `web.XMLHttpRequest` method open() initializes a newly-created or re-initializes an existing one. `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.
[Non Standard]
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. [Non Standard] 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.
[Draft]
The web.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. [Draft] The `web.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.
[Read Only]
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. [Read Only] 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.
[Read Only]
The web.XMLHttpRequest
response property returns the response's
content as an js.ArrayBuffer
, web.files.Blob
, web.Document
,
js.Object
, or web.DOMString
, depending on the value of the
responseType
property.
var body = XMLHttpRequest.response;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response
Property. [Read Only] The `web.XMLHttpRequest` response property returns the response's content as an `js.ArrayBuffer`, `web.files.Blob`, `web.Document`, `js.Object`, or `web.DOMString`, depending on the value of the `responseType` property. `var body = XMLHttpRequest.response;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response`
(response-text this)
Property.
[Read Only] [Draft]
The read-only web.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. [Read Only] [Draft] The read-only `web.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 web.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 `web.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.
[Read Only]
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. [Read Only] 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.
[Read Only]
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. [Read Only] 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 web.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 `web.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 web.XMLHttpRequest
method sendAsBinary() is a
of the send()
method that sends binary data. The send() method
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 `web.XMLHttpRequest` method sendAsBinary() is a of the `send()` method that sends binary data. The send() method 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-moz-background-request! this val)
Property.
[Draft]
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. [Draft] 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-multipart! this val)
Property.
[Non Standard]
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. [Non Standard] 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 EventHandler
that is called whenever the readyState attribute
The callback is called from the user interface thread. The XMLHttpRequest.onreadystatechange
contains the event handler to be called when the readystatechange
is fired, that is every time the readyState
property of the
changes.
XMLHttpRequest.onreadystatechange = callback;
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange
Property. An `EventHandler` that is called whenever the readyState attribute The callback is called from the user interface thread. The XMLHttpRequest.onreadystatechange contains the event handler to be called when the readystatechange is fired, that is every time the `readyState` property of the changes. `XMLHttpRequest.onreadystatechange = callback;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange`
(set-ontimeout! this val)
Property.
Is an EventHandler that is called whenever the request times
Property. Is an EventHandler that is called whenever the request times
(set-request-header this header value)
Method.
The web.XMLHttpRequest
method setRequestHeader() sets the value
an HTTP request header. When using setRequestHeader(), you must
it after calling open()
, but before calling send()
. If this
is called several times with the same header, the values are
into one single request header.
XMLHttpRequest.setRequestHeader(header, value)
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader
Method. The `web.XMLHttpRequest` method setRequestHeader() sets the value an HTTP request header. When using setRequestHeader(), you must it after calling `open()`, but before calling `send()`. If this is called several times with the same header, the values are 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 web.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 `web.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-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 js.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 `js.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.
[Read Only]
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. [Read Only] 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.
[Read Only]
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. [Read Only] 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.
[Read Only]
The web.XMLHttpRequest
upload property returns an 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. [Read Only] The `web.XMLHttpRequest` upload property returns an `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 js.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 `js.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