Liking cljdoc? Tell your friends :D

web.XMLHttpRequest

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.
raw docstring

abortcljs

(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`
sourceraw docstring

channelcljs

(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`
sourceraw docstring

get-all-response-headerscljs

(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`
sourceraw docstring

get-response-headercljs

(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`
sourceraw docstring

initcljs

(init this & args)

Method.

Initializes the object for use from C++ code.

Method.

Initializes the object for use from C++ code.
sourceraw docstring

moz-anoncljs

(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`
sourceraw docstring

moz-background-requestcljs

(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`
sourceraw docstring

moz-response-array-buffercljs

(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`
sourceraw docstring

moz-systemcljs

(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`
sourceraw docstring

multipartcljs

(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`
sourceraw docstring

onreadystatechangecljs

(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`
sourceraw docstring

ontimeoutcljs

(ontimeout this)

Property.

Is an EventHandler that is called whenever the request times

Property.

Is an EventHandler that is called whenever the request times
sourceraw docstring

opencljs

(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`
sourceraw docstring

open-requestcljs

(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`
sourceraw docstring

override-mime-typecljs

(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`
sourceraw docstring

ready-statecljs

(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`
sourceraw docstring

responsecljs

(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.dom.DOMString, depending on the value of request's 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.dom.DOMString`, depending on the value of
request's `responseType` property.

`var body = XMLHttpRequest.response;`

See also: `https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response`
sourceraw docstring

response-textcljs

(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`
sourceraw docstring

response-typecljs

(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`
sourceraw docstring

response-urlcljs

(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`
sourceraw docstring

response-xmlcljs

(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`
sourceraw docstring

sendcljs

(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`
sourceraw docstring

send-as-binarycljs

(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`
sourceraw docstring

set-moz-background-request!cljs

(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`
sourceraw docstring

set-multipart!cljs

(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`
sourceraw docstring

set-onreadystatechange!cljs

(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`
sourceraw docstring

set-ontimeout!cljs

(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
sourceraw docstring

set-request-headercljs

(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`
sourceraw docstring

set-response-type!cljs

(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`
sourceraw docstring

set-timeout!cljs

(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`
sourceraw docstring

set-with-credentials!cljs

(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`
sourceraw docstring

statuscljs

(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`
sourceraw docstring

status-textcljs

(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`
sourceraw docstring

timeoutcljs

(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`
sourceraw docstring

uploadcljs

(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`
sourceraw docstring

with-credentialscljs

(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`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close