Represents the state of the request.
lValue = oServerXMLHTTPRequest.readyState;
var XmlServerHttp;
XmlServerHttp = new ActiveXObject("Msxml2.ServerXMLHTTP.5.0");
XmlServerHttp.onreadystatechange = doServerHttpReadyStateChange;
XmlServerHttp.open("GET", "http://localhost/sample.xml", true);
XmlServerHttp.send();
function doServerHttpReadyStateChange() {
if (XmlServerHttp.readyState == 4) {
alert("Done");
}
}
lValue = oServerXMLHTTPRequest.readyState
HRESULT get_readyState(long* pvarVal);
| (0) UNINITIALIZED | The object has been created but has not been initialized because the open method has not been called. |
| (1) LOADING | The object has been created but the send method has not been called. |
| (2) LOADED | The send method has been called and the status and headers are available, but the response is not yet available. |
| (3) INTERACTIVE | Some data has been received. You can call responseBody and responseText to get the current partial results. |
| (4) COMPLETED | All the data has been received, and the complete data is available in responseBody and responseText. |
This property returns a 4-byte integer.
To view reference information for Visual Basic, C/C++, or Script only, click the Language Filter button
in the upper-left corner of the page.
open Method | responseBody Property | responseText Property | send Method | status Property | statusText Property
Applies to: IServerXMLHTTPRequest/ServerXMLHTTP