Home >Web Front-end >JS Tutorial >Briefly describe what is ajax
Ajax's full name is "Asynchronous Javascript And XML", that is, asynchronous JavaScript and XML, which refers to a web development technology for creating interactive web applications; by exchanging a small amount of data with the server in the background, Ajax can make web pages realize Asynchronous updates.
Ajax = Asynchronous JavaScript and XML or HTML (a subset of Standard Universal Markup Language).
Ajax is a technology for creating fast, dynamic web pages.
Ajax is a technology that can update parts of a web page without reloading the entire web page.
Ajax allows web pages to be updated asynchronously 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 web page if the content needs to be updated.
Origin of the name
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 used by all major browsers support. 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.
Development Patterns
Many important techniques and Ajax development patterns can be derived from existing knowledge. For example, in an application that sends requests to the server, it must include request order, priority, timeout response, error handling, and callbacks. Many of these elements are already included in Web services. At the same time, as the technology matures, there will be many areas that need improvement, especially the ease of use of the UI.
Ajax development is very different from traditional B/S development. These differences introduce new programming problems, the biggest being ease of use. Since Ajax relies on the browser's JavaScript and XML, browser compatibility and supported standards become as important as JavaScript's runtime performance. Most of these problems arise from a combination of browsers, servers, and technologies, so it's important to understand how to best use these technologies.
Combining various changing technologies and strongly coupled client-server environments, Ajax proposes a new development method. Ajax developers must understand the traditional MVC architecture, which limits the boundaries between application layers. At the same time, developers also need to consider the outside of the B/S environment and use Ajax technology to reshape MVC boundaries. Most importantly, Ajax developers must stop thinking of Web applications in terms of collections of pages and need to think of them as individual pages. Once the scope between UI design and service architecture is strictly separated, developers need an updated and changing set of techniques.
The above is the detailed content of Briefly describe what is ajax. For more information, please follow other related articles on the PHP Chinese website!