Cancels the current HTTP request.
oServerXMLHttpRequest.abort();
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 == 2) {
xmlServerHttp.abort();
}
}
oServerXMLHttpRequest.abort
HRESULT abort(void);
The object will be returned to the UNINITIALIZED state, and open method must be called next.
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.
readyState Property (ServerXMLHTTP/IServerXMLHTTPRequest) | open Method (ServerXMLHTTP/IServerXMLHTTPRequest)
Applies to: IServerXMLHTTPRequest/ServerXMLHTTP