The PHPer Ajax technology for beginners and its simple application

Source: Internet
Author: User
Next I will briefly introduce the Ajax technology and its simple application. Note: the theoretical knowledge mainly comes from Ajax programming technology and examples. All codes passed the test in IE6.0, Firefox, and Opera9.0. What is Ajax: Ajax (AsynchronousJ

Next I will briefly introduce the Ajax technology and its simple application.

Note: the theoretical knowledge mainly comes from Ajax programming technology and examples. All codes passed the test in IE 6.0, Firefox, and Opera9.0.

What is Ajax: Ajax (Asynchronous Javascrpt And Xml) is a browser technology that enables Asynchronous communication between browsers And servers for data communication, this allows the browser to obtain a small amount of information from the server instead of refreshing the entire page. Ajax is not a new technology, or it is not a technology, but a combination of multiple technologies: javascript, Html, Css, Dom, Xml, XMLHttpRequest, and other technologies constitute Ajax by playing their respective roles in collaboration in a certain way.

Javascript, Html, and Css are essential knowledge for WEB Programmers. we will not introduce them here. next we will introduce XMLHttpRequest. It can be said that XMLHttpRequest is the core of Ajax technology, and Ajax cannot work without it.

XMLHttpRequest: XMLHttpRequest is an object of the XMLHttp component. XMLHttpRequest can be used to implement asynchronous communication between the browser and the server. Through the HttpRequest object, the Web application can submit information to the server without refreshing the page, and then obtain the server-side response information.

How to use XMLHttpRequest object: to use XMLHttpRequest, you must first create an XMLHttpRequest object.

Example:

Copy the content to the clipboard code:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.