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
AJAX can be used to communicate interactively with the XML file.
The following example demonstrates how to use AJAX web page to read the information from the XML file:
When users click on the "Getting CD information" button will execute loadXMLDoc () function.
loadXMLDoc () function to create XMLHttpRequest object, add the function to be executed when the server response is ready, and sends the request to the server.
When the server response is ready, it will build an HTML table, extracted node (element) from the XML file, and then use the HTML form has been filled in the XML data to update txtCDInfo placeholders:
The above example uses the page server is actually a "named cd_catalog.xml " the XML file.