Cancels the current HTTP request.
oXMLHttpRequest.abort();
var xmlhttp;
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP.4.0");
xmlhttp.onreadystatechange = doHttpReadyStateChange;
xmlhttp.open("GET", "http://localhost/sample.xml", true);
if (xmlDoc.parseError.errorCode <> 0) {
var myErr = xmlDoc.parseError;
alert("You have error " + myErr.reason);
} else {
xmlhttp.send();
}
function doHttpReadyStateChange() {
if (xmlhttp.readyState == 2) {
xmlhttp.abort();
}
}
oXMLHttpRequest.abort
HRESULT abort(void);
The request 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 (IXMLHTTPRequest) | open Method (IXMLHTTPRequest)
Applies to: IXMLHTTPRequest
| This HTML Help has been published using the chm2web software. |