Search w3schools.com:

SHARE THIS PAGE

AJAX Examples


Examples

Try it Yourself - Examples

A simple AJAX example
Create a simple XMLHttpRequest, and retrieve data from a TXT file.

Load an XML file with AJAX
Create an XMLHttpRequest to retrieve data from an XML file.

Retrieve header information with AJAX
Retrieve header information of a resource (file).

Retrieve specific header information with AJAX
Retrieve specific header information of a resource (file).

Retrieve the content of an ASP file
How a web page can communicate with a web server while a user type characters in an input field.

Retrieve content from a database
How a web page can fetch information from a database with AJAX.

Retrieve the content of an XML file
Create an XMLHttpRequest to retrieve data from an XML file and display the data in an HTML table.

An AJAX example with a callback function
Create a XMLHttpRequest with a callback function, and retrieve data from a TXT file.




W3Schools Certification

W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 10 000 certificates already issued!

Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The HTML5 Certificate documents your knowledge of advanced HTML5.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The jQuery Certificate documents your knowledge of jQuery.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.

The PHP Certificate documents your knowledge of PHP and SQL (MySQL).

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]