XMLHttpRequest object








Here is the object interface.

interface XMLHttpRequest {
// event handler
attribute EventListener
onreadystatechange;

// state
const unsigned short
UNSENT = 0;
const unsigned short
OPENED = 1;
const unsigned short
HEADERS_RECEIVED = 2;
const unsigned short
LOADING = 3;
const unsigned short
DONE = 4;
readonly attribute unsigned short
readyState;

// request
void
open(in DOMString method, in DOMString url);
void
open(in DOMString method, in DOMString url, in boolean async);
void
open(in DOMString method, in DOMString url, in boolean async, in DOMString user);
void
open(in DOMString method, in DOMString url, in boolean async, in DOMString user, in DOMString password);
void
setRequestHeader(in DOMString header, in DOMString value);
void
send();
void
send(in DOMString data);
void
send(in Document data);
void
abort();

// response
DOMString
getAllResponseHeaders();
DOMString
getResponseHeader(in DOMString header);
readonly attribute DOMString
responseText;
readonly attribute Document
responseXML;
readonly attribute unsigned short
status;
readonly attribute DOMString
statusText;
};



No comments:

Post a Comment