PHP complete se...login
PHP complete self-study manual
author:php.cn  update time:2022-04-15 13:53:54

Introduction to AJAX



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


What is AJAX?

AJAX = Asynchronous JavaScript and XML.

AJAX is a technology for creating fast, dynamic web pages.

AJAX allows web pages to be updated asynchronously by exchanging a small amount of data with the server in the background. This means that parts of a web page can be updated without reloading the entire page.

Traditional web pages (not using AJAX) must reload the entire page if the content needs to be updated.

There are many examples of applications that use AJAX: Google Maps, Gmail, Youtube and Facebook.


How AJAX works

ajax.gif


AJAX is based on Internet standards

AJAX is based on Internet standards and uses the following combination of technologies :

  • XMLHttpRequest object (asynchronous data interaction with the server)

  • JavaScript/DOM (display/retrieve information)

  • CSS (setting the style of data)

  • XML (commonly used as a format for data transmission)

lamp AJAX App is browser and platform agnostic!


Google Search Suggest (Google Suggest)

With the release of Google’s search suggestion feature in 2005, AJAX became popular.

Google Suggest uses AJAX to create a highly dynamic web interface: when you type in the Google search box, JavaScript will send the characters to the server, and the server will return suggestions. list.


Start using AJAX today

In our PHP tutorial, we will demonstrate how AJAX can update certain parts of a web page without reloading the entire page. We will write the server script in PHP.

If you want to learn more about AJAX, visit our AJAX Tutorial.

Recommended related video tutorials: "AJAX Tutorial"http://www.php.cn/course/list/25.html

php.cn