XmlHttpRequest Object Method And Property
摘自《Ajax-A Beginner Guide》
XMLHttpRequest Object Properties for Internet Explorer
Property Description onreadystatechange Contains the name of the event handler that should be called when the value of the readyState property changes. Read/write. readyState Contains state of the request. Read-only. responseBody Contains a response body, which is one way HTTP responses can be returned. Read-only. responseStream Contains a response stream, a binary stream to the server. Read-only. responseText Contains the response body as a string. Read-only. responseXML Contains the response body as XML. Read-only. status Contains the HTTP status code returned by a request. Read-only. statusText Contains the HTTP response status text. Read-only.
XMLHttpRequest Object Methods for Internet Explorer
Method Description abort Aborts the HTTP request. getAllResponseHeaders Returns all the HTTP headers. getResponseHeader Returns the value of an HTTP header. open Opens a request to the server. send Sends an HTTP request to the server. setRequestHeader Sets the name and value of an HTTP header.
XMLHttpRequest Object Properties for Mozilla, Firefox, and Netscape Navigator
Property Description channel Contains the channel used to perform the request. Read-only. readyState Contains the state of the request. Read-only. responseText Contains the response body as a string. Read-only. responseXML Contains the response body as XML. Read-only. status Contains the HTTP status code returned by a request. Read-only. statusText Contains the HTTP response status text. Read-only.
XMLHttpRequest Object Methods for Mozilla, Firefox, and Netscape Navigator
Method Description abort Aborts the HTTP request. getAllResponseHeaders Returns all the HTTP headers. getResponseHeader Returns the value of an HTTP header. openRequest Native (nonscript) method to open a request. overrideMimeType Overrides the MIME type the server returns.
XMLHttpRequest Object Properties for Apple Safari
Property Description onreadystatechange Contains the name of the event handler that should be called when the value of the readyState property changes. Read/write. readyState Contains state of the request. Read-only. responseText Contains the response body as a string. Read-only. responseXML Contains the response body as XML. Read-only. status Contains the HTTP status code returned by a request. Read-only. statusText Contains the HTTP response status text. Read-only.
XMLHttpRequest Object Methods for Apple Safari
Method Description abort Aborts the HTTP request. getAllResponseHeaders Returns all the HTTP headers. getResponseHeader Returns the value of an HTTP header. open Opens a request to the server. send Sends an HTTP request to the server. setRequestHeader Sets the name and value of an HTTP header.