1 out of 1 rated this helpful - Rate this topic

XMLHttpRequest Prototype

Defines the properties and methods inherited by objects in the XMLHttpRequest prototype chain.

Syntax

HTML N/A
Scripting XMLHttpRequest.prototype

Members Table

The following table lists the members exposed by the XMLHttpRequest Constructor object.

Attributes/Properties

Property Description
readyState Retrieves the current state of the request operation.
responseBody Retrieves the response body as an array of unsigned bytes.
responseText Retrieves the response body as a string.
responseXML Retrieves the response body as an XML Document Object Model (DOM) object.
status Retrieves the HTTP status code of the request.
statusText Retrieves the friendly HTTP status of the request.
timeout Gets or sets the time-out value.

Events

Event Property Description
onreadystatechange Sets or retrieves the event handler for asynchronous requests.
ontimeout Raised when there is an error that prevents the completion of the request.

Methods

Method Description
abort The abort method terminates a pending send.
getAllResponseHeaders Returns the complete list of response headers.
getResponseHeader Returns the specified response header.
open Assigns method, destination URL, and other optional attributes of a pending request.
send Sends an HTTP request to the server and receives a response.
setRequestHeader Adds custom HTTP headers to the request.

Remarks

For more information on this and other DOM Prototypes see Document Object Model Prototypes, Part 1: Introduction.

This prototype does not derive from any objects.

Applies To

XMLHttpRequest

See Also

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ