What is Ajax technology?

Source: Internet
Author: User
Tags object continue http request interface mail object model window xslt
1. What is Ajax?
The full name of Ajax is: Asynchronousjavascript+xml

Definition of 2.Ajax:
Ajax is not a technology, it is actually several technologies, each of which has its own uniqueness, and together it becomes a powerful new technology.

3.Ajax includes:
XHTML and CSS
Use the Document Object Model (Documentobjectmodel) for dynamic display and interaction
Data interaction and manipulation using XML and XSLT
Using XMLHttpRequest for asynchronous data reception
Use JavaScript to bind them together

The latest buzzword in web development is the essence of "a new facelift".

Ajax (Asynchronousjavascriptandxml) is a combination of Java technology, XML and JavaScript, and other programming techniques that allow developers to build web-based applications based on Java technology, and break the practice of using page overloading.

Ajax is a Web application development method that uses client script to exchange data with a Web server. This way, Web pages can be updated dynamically without interrupting the interactive process. With Ajax, users can create a direct, highly available, richer, more dynamic Web user interface that is close to local desktop applications.

asynchronous JavaScript and XML (AJAX) are not new technologies, but rather a method that uses several existing technologies-including cascading style sheets (CSS), JavaScript, XHTML, XML, and Extensible Style Language Transformations (XSLT). Develop Web applications that look and operate like desktop software. All of the components that implement Ajax have existed for many years. Adaptivepath's user Experience strategy department head and founder partner Jessejamesgarrett coined the term in an article published on the Adaptivepath website this February.

The term asynchronous refers to the way AJAX applications communicate with host servers. If you use the old mode, the Web browser updates the current window whenever the user performs some action and requests new data from the server.

If you use an AJAX asynchronous Pattern, the browser does not have to wait for the user to request the operation, or update the entire window to display the newly acquired data. As long as the data is sent back and forth in XML format, JavaScript code running in the browser can be contacted with the server. JavaScript code can also add a style sheet to the retrieved data and then display it on a portion of an existing page.

Google's Gmail and GoogleMaps are among the most common examples of consumer-facing applications. In Gmail, Ajax is responsible for how to open a thread session to display the text content of different messages. In Maps, Ajax allows users to drag and roll maps in a seemingly seamless way.

and Yahoo's Flickr photo sharing app and Amazon's A9 search engine. In addition, Yahoo's new web mail Service may soon attract the attention of Ajax supporters, based on the technology that Yahoo acquired after Oddpost.

These UI are fully used in the background channel, but also by some developers called "Web2.0", and led to an interest in AJAX applications soared.

However, AJAX application software vendors are increasingly targeting businesses. For example, Scalix's webaccess e-mail application is actually more like Outlook than Microsoft Outlook's own Web mail interface.

However, the application field of AJAX applications has certain limitations. Because they take advantage of some of the latest web technologies, they can only run in some Web browsers-but Ajax is becoming more and more suitable for browsers.

Ajax

Ajax, asynchronous JavaScript and XML, is a Web application development method that uses client script to exchange data with a Web server. This way, Web pages can be updated dynamically without interrupting the interactive process. With Ajax, you can create a direct, highly available, richer, more dynamic Web user interface that is close to local desktop applications.

Ajax processing Process

An AJAX interaction begins with a JavaScript object called XMLHttpRequest. As the name implies, it allows a client script to execute the HTTP request and will parse an XML-formatted server response. The first step in the AJAX process is to create a XMLHttpRequest instance. Use the HTTP method (get or post) to process the request and set the target URL to the XMLHttpRequest object.

Now, remember how Ajax is first in the asynchronous processing state? When you send an HTTP request, you do not want the browser to hang up and wait for the server to respond, instead, you want to continue to interact with the user's interface through the page and process them after the server response has actually arrived. To do this, you can register a callback function with XMLHttpRequest and distribute XMLHttpRequest requests asynchronously. Control is immediately returned to the browser, and the callback function is invoked when the server response arrives.

On the Javaweb server, the incoming request is the same as any other httpservletrequest. After parsing the request parameter, the servlet executes the required application logic, serializes the response into the XML, and writes it back to HttpServletResponse.


An AJAX interaction begins with a JavaScript object called XMLHttpRequest. As the name implies, it allows a client script to execute the HTTP request and will parse an XML-formatted server response. The first step in the AJAX process is to create a XMLHttpRequest instance. Use the HTTP method (get or post) to process the request and set the target URL to the XMLHttpRequest object.

Now, remember how Ajax is first in the asynchronous processing state? When you send an HTTP request, you do not want the browser to hang up and wait for the server to respond, instead, you want to continue to interact with the user's interface through the page and process them after the server response has actually arrived. To do this, you can register a callback function with XMLHttpRequest and distribute XMLHttpRequest requests asynchronously. Control is immediately returned to the browser, and the callback function is invoked when the server response arrives.

On the Javaweb server, the incoming request is the same as any other httpservletrequest. After parsing the request parameter, the servlet executes the required application logic, serializes the response into the XML, and writes it back to HttpServletResponse.


An AJAX interaction begins with a JavaScript object called XMLHttpRequest. As the name implies, it allows a client script to execute the HTTP request and will parse an XML-formatted server response. The first step in the AJAX process is to create a XMLHttpRequest instance. Use the HTTP method (get or post) to process the request and set the target URL to the XMLHttpRequest object.

Now, remember how Ajax is first in the asynchronous processing state? When you send an HTTP request, you do not want the browser to hang up and wait for the server to respond, instead, you want to continue to interact with the user's interface through the page and process them after the server response has actually arrived. To do this, you can register a callback function with XMLHttpRequest and distribute XMLHttpRequest requests asynchronously. Control is immediately returned to the browser, and the callback function is invoked when the server response arrives.

On the Javaweb server, the incoming request is the same as any other httpservletrequest. After parsing the request parameter, the servlet executes the required application logic, serializes the response into the XML, and writes it back to HttpServletResponse.

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.