Class XMLHttpRequest
A standard implementation of the XMLHttpRequest interface as defined by w3c. This class does not strive to be binary compatible with any specific browser implementation, so using a wrapper library might not work well.
Notable things about the XHR implementation inside Content Studio include:
- The requests will use the same HTTP proxy as Content Studio itself.
- Any requests to the web service using the same base URI, host name and port are pre-authenticated as the user logged in to Content Studio. No need to provide credentials in order to perform operations on behalf of the user
- The base URI for relative URIs is the root of the web
service itself, i.e.
/webservice/
. This means that well known starting points in the web service can be accessed using relative URIs, if needed. - XML responses are decoded and made availabe as E4X elements
- JSON responses are decoded and made available as JavaScript objects.
Constructor Attributes | Constructor Name and Description |
---|---|
Instantiates a new XMLHttpRequest instance.
|
Method Attributes | Method Name and Description |
---|---|
An event listener which is invoked every time the readyState changes.
|
|
open(Method, URL, Asynchronous, UserName, Password)
Prepares the XHR to connect to a specific server.
|
|
setRequestHeader(name, value)
Sets a request header.
|
Method Detail
onreadystatechange()
An event listener which is invoked every time the readyState changes.
open(Method, URL, Asynchronous, UserName, Password)
Prepares the XHR to connect to a specific server.
- Parameters:
- Method
- URL
- Asynchronous
- UserName
- Password
setRequestHeader(name, value)
Sets a request header.
- Parameters:
- name
- value