IHTMLXDomainRequest interface
Implements cross-domain Asynchronous JavaScript and XML (AJAX) requests between the browser and a server.
Members
The IHTMLXDomainRequest interface inherits from the IDispatch interface but does not have additional members.
Remarks
Cross-domain requests require mutual consent between the Web page and the server.
You can initiate a cross-domain request by creating an
XDomainRequest (XDR) object with the window object,
and opening a connection to a URL.
When sending the request, Windows Internet Explorer 8 includes an
XDomainRequest: 1 HTTP request header.
The connection is completed only if the server responds with an XDomainRequestAllowed: 1 response header.
To use the XDR protocol, you first create an XDomainRequest object. Then you use the IHTMLXDomainRequest::open method to establish a connection with a server. Once a connection is opened, the IHTMLXDomainRequest::send method transmits data strings to the server for processing. For example:
// 1. Create XDR object
xdr = new XDomainRequest();
// 2. Open connection with server using POST method
xdr.open("POST", "http://www.contoso.com/xdr.txt");
// 3. Send string data to server
xdr.send("data to be processed");
For more information, see XDomainRequest.
Requirements
|
Minimum supported client | Windows XP with SP2 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2003 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also
Build date: 11/12/2012