PHP Beginner's Introduction to AJAX

1.ajax Introduction

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

2.What is ajax

AJAX = Asynchronous JavaScript and XML.

AJAX is an application Technology for creating fast, dynamic web pages.

AJAX enables asynchronous updates of web pages 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 using AJAX: Google Maps, Gmail, Youtube and Facebook

3.Why use ajax

For example: We have a form. Username, password, email, hobbies, etc. When you have almost filled in the form and submitted it, but it is illegal, you need to return to this page. If ajax is not used, the information in the form needs to be filled in again, so no one will be willing to continue filling it in. When ajax is used After the technology is implemented, there will be a prompt message if the form is illegal, and the legal form will continue to be retained, which will be very convenient

4.How ajax works

图片3.png

#5.

AJAX is based on Internet standards

AJAX Based on Internet standards and using the following technology combination:

· XMLHttpRequest object (asynchronous data exchange with the server)

· JavaScript/DOM (display/retrieve information)

· CSS (Style data)

· XML (Commonly used format for data transmission)

AJAX applications are browser and platform independent!


Continuing Learning
||
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!