Latest web development tutorials

AJAX Examples

Examples

AJAX Examples

A simple AJAX examples

Create a simple XMLHttpRequest, returns the data from a TXT file.

Loading XML file with AJAX

Create a simple XMLHttpRequest, returns the data from an XML file.

HEAD request with AJAX once

To retrieve the resource (document) header information.

To conduct a specified HEAD request with AJAX

To retrieve the resource (file) to specify the header information.

With AJAX return data from ASP file

When the user types characters in the text box on the page how to communicate with the Web server

Returns data from a database with AJAX

AJAX web page with how to obtain information from the database

Use AJAX to return data from an XML file

Create an XMLHttpRequest to retrieve data from an XML file and displayed in an HTML table.

Examples of using AJAX callback function

Create an XMLHttpRequest with a callback function, and retrieve data from a TXT file.