What Is Ajax? (Reposted on the blog of crazy customers)

Source: Internet
Author: User

The definition of AJAX is not a technology. It is actually several technologies, each of which has its own unique characteristics. Together, Ajax becomes a powerful new technology.

Ajax includes XHTML and CSS. It uses the Document Object Model for Dynamic Display and interaction, XML and XSLT for Data Interaction and operations, and XMLHttpRequest for asynchronous data reception, use JavaScript to bind them together.

The traditional web application model works like this: Most user actions on the Interface trigger an HTTP request connected to the Web server. The server completes some processing-receiving data, processing computing, accessing other database systems, and finally returning an HTML page to the client. This is an old model. It has been used as a web application since hypertext was used. But readers who have read the elements of user experience must know that, what makes web interfaces easier to use than desktop software. This old approach makes us realize many technologies, but it will not produce a good user experience. What are users doing when the server is processing their own tasks? That's right. Wait. Users have to wait for every action.

Obviously, if we design Web applications according to the thinking of desktop programs, we don't want users to wait. When the interface is loaded, why do users need to spend another half of their time retrieving data from the service? In fact, why do we always let users see the program to fetch data from the server? How Ajax is extraordinary. By introducing an Ajax engine between the user and the server, you can eliminate the interaction process like starting, stopping, starting, and stopping the web. it is like adding a mechanism to the program to make it more responsive, and it does.

Unlike loading a page, the browser loads an Ajax engine at the beginning of a session-written in JavaScript and usually in a hidden frame. This engine is used to draw user interfaces and communicate with the server. The Ajax engine allows Asynchronous interaction between users and programs-without waiting for server communication. Therefore, you no longer need to open a blank window, and wait until the cursor continuously turns, and wait for the server to finish responding.

An HTTP user request action can now be replaced by calling the Ajax engine through JavaScript. The response of any user action is no longer required to be directly transmitted to the server, such as simple data verification, data editing in the memory, or even some page navigation, and the engine can process it by itself. If the engine needs to retrieve data from the server to respond to user actions-assuming that the engine submits the data to be processed, loads other interface code, or receives new data, the engine can also make these jobs run asynchronously. XML is usually used, so you don't have to worry about user interface interaction.

 

Source: http://www.open-open.com

What Is Ajax? (Reposted on the blog of crazy customers)

Related Article

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.