AJAX Chinese Re...LOGIN
AJAX Chinese Reference Manual
author:php.cn  update time:2022-04-12 16:00:57

Introduction to AJAX



AJAX is a technology that can update parts of a web page without reloading the entire web page.


Basic knowledge you should have

Before continuing to study, you need to have a basic understanding of the following knowledge:

  • HTML / Please access these tutorials on our home page.

  • What is AJAX?

    AJAX = Asynchronous JavaScript and XML.
  • AJAX is a technology for creating fast, dynamic web pages.

    By exchanging a small amount of data with the server in the background, AJAX can enable asynchronous updates of web pages. This means that parts of a web page can be updated without reloading the entire page.
For traditional web pages (not using AJAX), if the content needs to be updated, the entire web page must be reloaded.

There are many application cases using AJAX: Sina Weibo, Google Maps, Kaixin.com, etc.

How AJAX works

AJAX is based on existing Internet standards

AJAX is based on existing Internet standards, and use them in combination:


XMLHttpRequest object (asynchronous exchange of data with the server)

ajax.gif

JavaScript/DOM (information display/interaction )

CSS (define styles for data)

  • XML (as a format for converting data)

  • AJAX applications are browser and platform independent!
  • Google Suggest

  • In 2005, Google made AJAX popular with its Google Suggest.
  • Google Suggest uses AJAX to create a highly dynamic web interface: when you enter keywords in Google's search box, JavaScript will send these characters to the server, and then the server will return a list of search suggestions .

Start using AJAX today

lamp.gifAJAX is based on existing standards. These standards have been used by most developers for many years.


Read the next chapter to see how AJAX works!