AJAX Basic
AJAX XMLHttpRequest
AJAX Advanced
| XHR Response |
Server ResponseTo get the response from a server, use the responseText or responseXML property of the XMLHttpRequest object.
The responseText PropertyIf the response from the server is not XML, use the responseText property. The responseText property returns the response as a string, and you can use it accordingly:
The responseXML PropertyIf the response from the server is XML, and you want to parse it as an XML object, use the responseXML property: ExampleRequest the file cd_catalog.xml and parse the response: xmlDoc=xmlhttp.responseXML; |
XHR Response