HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
To get a response from the server, use or responseXML responseText property of the XMLHttpRequest object.
Attributes | description |
---|---|
responseText | Get a string of response data. |
responseXML | Get XML form of the response data. |
If the response from the server is not XML, use the responseText property.
responseText property returns a string response, so you can use:
If the response from the server is XML, but also as an XML parsing object, use responseXML properties:
Request cd_catalog.xml file and parse the response: