This documentation is archived and is not being maintained.

Sys.Net.XMLHttpExecutor Class

Visual Studio 2008

Makes asynchronous network requests by using the browser's XMLHTTP support.

Namespace: Sys.Net

Inherits: None

var executor = new Sys.Net.XMLHttpExecutor();

Name

Description

Sys.Net.XMLHttpExecutor Constructor

Initializes a new instance of the Sys.Net.XMLHttpExecutor class when implemented in a derived class.

Sys.Net.XmlHttpExecutor abort Method

Stops the pending network request issued by the executor.

Sys.Net.XmlHttpExecutor executeRequest Method

Executes a network request as specified in the associated WebRequest instance.

Sys.Net.XmlHttpExecutor.getAllResponseHeaders Method

Returns the response headers.

Sys.Net.WebRequestExecutor.getResponseHeader Method

Sys.Net.XmlHttpExecutor.getResponseHeader Method

Gets the value of a specified response header.

Sys.Net.XmlHttpExecutor aborted Property

Returns a value that indicates whether the executor was aborted.

Sys.Net.XmlHttpExecutor responseAvailable Property

Returns a value that indicates whether the network request returned without being aborted or timing out.

Sys.Net.XmlHttpExecutor responseData Property

Gets the text representation of the response body.

Sys.Net.XmlHttpExecutor started Property

Returns a value that indicates whether the executor has forwarded the request to the browser's XMLHTTP object.

Sys.Net.XmlHttpExecutor statusCode Property

Gets the status code of the browser's XMLHTTP object.

Sys.Net.XmlHttpExecutor statusText Property

Gets the status text from the browser's XMLHTTP object.

Sys.Net.XmlHttpExecutor timedOut Property

Returns a value that indicates whether the executor timed out.

Sys.Net.XmlHttpExecutor xml Property

Returns an XMLDOM object that contains the XML response from the browser's XMLHTTP object.

The XmlHttpExecutor class acts as the default executor and is an implementation of the WebRequestExecutor abstract class.

Because the default executor is already set, you do not have to create an instance of the class and associate it with the Web request. However, if you define a custom executor, you must create an instance of the executor and set it as the default executor of the Web request.

After the network call is completed, the XmlHttpExecutor object should be used only to obtain response data, after which it should be discarded.

NoteNote:

For more information about the XMLHTTP object, see About Native XMLHTTP.

The following example shows how to use the XmlHttpExecutor class methods and properties. The example shows a Web page and the client script that interacts with the XmlHttpExecutor class.

Show: