AJAX Example


实例

AJAX Examples

A simple AJAX example

Create a simple XMLHttpRequest to return data from a TXT file.

Load an XML file with AJAX

Create a simple XMLHttpRequest to return data from an XML file.

Make a HEAD request with AJAX

Retrieve the header information of a resource (file).

Make a specified HEAD request with AJAX

Retrieve specified header information of a resource (file).

Return data from an ASP file with AJAX

How a web page communicates with a web server when the user types characters in a text field

Return data from a database with AJAX

How a web page uses AJAX to retrieve information from a database

Return data from an XML file with AJAX

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

AJAX example using a callback function

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

Other extensions