.gif)
Note: This documentation is preliminary and is subject to change.
Represents a cross-domain XML request via HTTP.
Members Table
The following table lists the members exposed by the
XDomainRequest
object.
Show:
|
| Property | Description |
|---|
| contentType |
The contentType property gets or sets
the content-type header in the request or response.
| | responseText |
Contains the body of the response returned by the server.
| | timeout |
Gets or sets the value of the timeout property.
|
| Event | Description |
|---|
| onerror |
Raised when there is an error that prevents the completion of the cross-domain request.
| | onload |
Raised when the object has been completely received from the server.
| | onprogress |
Raised when the browser starts receiving data from the server.
| | ontimeout |
Raised when there is an error that prevents the completion of the request.
|
| Method | Description |
|---|
| abort |
The abort method terminates a pending send.
| | open |
Creates a connection with a domain's server.
| | send |
Transmits a data string to the server for processing.
|
|
Remarks
The XDomainRequest object is a safe, reliable,
and lightweight data service,
that allows script on any page
to anonymously connect to any server and exchange data.
Developers can use the XDomainRequest object
when cross-site security is not an issue.
The window object
provides an XDomainRequest property
that can be used to instantiate a new cross-domain request.
Example
var oXdr = new XDomainRequest;
Standards Information
There is no public standard that applies to this object.
See Also
XMLHttpRequest