W3Schools.com

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.



WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE