 Loading...
Class XMLHttpRequest
Object that provides some HTTP client functionality.
Members Table
The following table lists the members exposed by the XMLHttpRequest object.
|
Show:
|
Property |
Type |
Readonly |
Description |
onreadystatechange |
Function |
false |
An attribute that represents a function that MUST be invoked when readyState changes value. |
readyState |
Number |
false |
The state of the object (0 - Uninitialized, 1 - Open, 2 - Sent, 3 - Receiving, 4 - Loaded). |
responseText |
String |
false |
The body of the data received so far. |
responseXML |
XMLDocument |
false |
Document object, representing the parsed data. |
status |
Number |
false |
Represents the HTTP status code. (Available when readyState is 3 or 4) |
statusText |
String |
false |
Represents the HTTP status text sent by the server. |
Method |
Returns |
Description |
abort
|
Void |
Cancels network activity and resets the object. |
Sytaxis:
object.abort()
|
open
|
Void |
Meant to be a script-only method for initializing a request. |
Sytaxis:
object.open(method, url, asynch) Arguments:
Name |
Type |
O/R |
Description |
method |
String |
Required |
The HTTP method. |
url |
String |
Required |
The URL to which to send the request. |
asynch |
Boolean |
Required |
Indicates wether request should be asynchronous. |
|
send
|
Void |
Sends request to the server located by the URL provided when opening connection. |
Sytaxis:
object.send(data) Arguments:
Name |
Type |
O/R |
Description |
data |
Variant |
Required |
Data to be sent to the server. |
|
Event |
B |
C |
Interface |
Description |
Constant |
Value |
Description |
|
|