Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the characteristics of ajax

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

In this article, the editor introduces "what are the characteristics of ajax" in detail, the content is detailed, the steps are clear, and the details are handled properly. I hope this article "what are the characteristics of ajax" can help you solve your doubts.

Ajax, whose full name is "Asynchronous Javascript And XML", or "Asynchronous JavaScript and XML", is a technique for creating 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, javascript1.8.5 version, Dell G3 computer.

The full name of ajax is "Asynchronous Javascript And XML", or "asynchronous JavaScript and XML". It is a new term coined by Jesse James Garrett in 2005 to describe a "new" method of using a collection of existing technologies, including: HTML or XHTML, CSS, JavaScript, DOM, XML, XSLT, and most importantly XMLHttpRequest.

The term Ajax derives from describing everything 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 a request to the server and process the response without blocking the user's core object XMLHttpRequest. With this object, your JavaScript can exchange data with the Web server without reloading the page, that is, it can produce a local refresh effect without the need to refresh the page.

Ajax uses asynchronous data transfer (HTTP requests) between the browser and the Web server, which enables 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 friendly.

Ajax is a browser technology independent of Web server software. Ajax is based on the following Web standards:

The Web standards used by JavaScript, XML, HTML and CSS in Ajax are well defined and supported by all major browsers. Ajax applications are independent of browsers and platforms.

Web applications have many advantages over desktop applications; they can reach a wide range of users, and they are easier to install and maintain, and easier to develop.

However, Internet applications are not as complete and friendly as traditional desktop applications. Through Ajax, Internet applications can become more perfect and more friendly.

Features:

The biggest advantage of using Ajax is that you can maintain data without updating the entire page. This allows Web applications to respond more quickly to user actions and avoids sending messages that have not changed 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. With the maturity of Ajax, some libraries that simplify the use of Ajax have come out one after another. Similarly, another programming aid technology has emerged to provide alternative functionality for users who do not support JavaScript.

The main criticism of using Ajax is that it may undermine the browser's ability to back up and add bookmarks. In the case of dynamically updating the page, the user cannot return to the previous page state because the browser can only record static pages in the history. The possible difference between a fully read page and a dynamically modified page is subtle; users usually want to click the back button to cancel their previous operation, but in Ajax applications, they cannot do so. However, developers have come up with a variety of ways to solve this problem, and most of the previous methods of HTML5 were to create or use a hidden IFRAME to reproduce changes on the page when the user clicked 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 on the Ajax element to restore the application state to its current state).

With regard to the inability to add status to favorites or bookmarks, one of the previous ways for HTML5 was to use URL fragment identifiers (often referred to as anchors, that is, the part after # in URL) to keep track, allowing users to return to a specified application state. Many browsers allow JavaScript to update anchors dynamically, which enables Ajax applications to update anchors while updating the display. In the future, HTML5 can directly manipulate the browsing history and store the state of the web page as a string, which will be hidden when you add the web page to your favorites or bookmarks. The above two methods can also solve the problem that can not be backed down at the same time.

When developing Ajax, network latency-- the interval between a user's request and the server's response-- needs to be carefully considered. Users will be bored if they are not given a clear response, if the data is not read in advance properly, or if the XMLHttpRequest is not handled properly. The usual solution is to use a visual component to tell the user that the system is operating in the background and is reading data and content.

After reading this, the article "what are the characteristics of ajax" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself to understand it. If you want to know more about related articles, welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report