Home > Article > Web Front-end > What is ajax called?
The full name of ajax is "Asynchronous Javascript And XML", which is "asynchronous JavaScript and XML". It is a technology used to create better, faster and more interactive web applications; using Ajax can Maintain data without updating the entire page.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
The full name of ajax is "Asynchronous Javascript And XML", that is, "asynchronous JavaScript and XML". It is a new term proposed by Jesse James Garrett in 2005 to describe a new method that uses a collection of existing technologies. 'Methods, including: HTML or XHTML, CSS, JavaScript, DOM, XML, XSLT, and most importantly XMLHttpRequest.
The term Ajax comes from describing the transition from Web-based applications to data-based applications.
Ajax is not a new programming language, but a technology for creating better, faster, and more interactive Web applications.
Use JavaScript to make requests to the server and process responses without blocking the user's core object XMLHttpRequest. Through this object, your JavaScript can exchange data with the web server without reloading the page, that is, it can produce a partial refresh effect without refreshing the page.
Ajax uses asynchronous data transfer (HTTP requests) between the browser and the web server, which allows a web page to request a small amount of information from the server instead of the entire page.
Ajax can make Internet applications smaller, faster, and more user-friendly.
Ajax is a browser technology that is independent of Web server software. Ajax is based on the following web standards:
JavaScript, XML, HTML and CSS The web standards used in Ajax are well defined and supported by all major browsers. Ajax applications are browser and platform independent.
Web applications have many advantages over desktop applications; they can reach a wider range of users, they are easier to install and maintain, and they are easier to develop.
However, Internet applications are not as complete and user-friendly as traditional desktop applications. With Ajax, Internet applications can become more complete and user-friendly.
Features:
The biggest advantage of using Ajax is that it can maintain data without updating the entire page. This allows web applications to respond more quickly to user actions and avoids sending unchanged information over the network.
Ajax does not require any browser plug-ins, but requires the user to allow JavaScript to execute on the browser. Just like DHTML applications, Ajax applications must be rigorously tested on many different browsers and platforms. As Ajax matures, some program libraries that simplify the use of Ajax have also come out. Likewise, another assistive programming technology has emerged to provide alternative functionality for users who do not support JavaScript.
The main criticism of using Ajax is that it can break the browser's back and bookmark functionality. In the case of dynamically updated pages, the user cannot go back to the previous page state because the browser can only remember static pages in the history. The possible differences between a page that has been completely read and a page that has been dynamically modified are very subtle; users often expect to click the back button to cancel their previous operation, but in an Ajax application, this is not the case. Unable to do so. However, developers have come up with various ways to solve this problem. Most of the methods before HTML5 were to create or use a hidden IFRAME to reproduce the changes on the page when the user clicks the back button to access the history. (For example, when the user clicks back in Google Maps, it searches in a hidden IFRAME and then reflects the search results onto an Ajax element to restore the application state to what it was at that time).
Regarding the issue of not being able to add status to favorites or bookmarks, one way before HTML5 was to use URL fragment identifiers (often called anchors, the part after the # in the URL) to keep track, allowing The user returns to a specified application state. (Many browsers allow JavaScript to dynamically update anchors, which allows Ajax applications to update anchors while updating the displayed content.) HTML5 will later be able to directly manipulate browsing history, store web page status in the form of strings, and add web pages to web favorites. When clipping or bookmarking, the state is retained invisibly. The above two methods can also solve the problem of being unable to retreat at the same time.
When developing Ajax, network latency—that is, the interval between the user's request and the server's response—needs to be carefully considered. Not giving users a clear response, not properly pre-reading data, or improperly handling XMLHttpRequest will make users feel bored. A common solution is to use a visual component to tell the user that the system is performing background operations and reading data and content.
[Related tutorial recommendations: AJAX video tutorial]
The above is the detailed content of What is ajax called?. For more information, please follow other related articles on the PHP Chinese website!