Xmlhttp object reference
XMLHttpRequest object XMLHttpRequest member onreadystatechange readyState ResponseBody responsestream responseText responsexml status statustext about getallresponseheaders getresponseheader open send setrequestheader responsexml
Format the response information as an XML document object and return
grammar
var objDispatch = oXMLHttpRequest.responseXML;
Example
var xmlhttp = new ActiveXObject(“Msxml2.XMLHTTP.3.0”);
xmlhttp.open(“GET”, “http://localhost/books.xml”, false);
xmlhttp.send();
alert(xmlhttp.responseXML.xml);
Remarks
Variable, which is read-only, formats the response information as an XML document object and returns it. If the response data is not a valid XML document, this property does not return xmldomparseerror by itself. You can get the error information through the processed domdocument object.
Reference resources
ResponseBody property
Responsestream property
ResponseText property
responsexml
最新推荐文章于 2023-09-17 10:58:00 发布