One of the full solutions of Ajax technology

Source: Internet
Author: User
Tags html page http request xslt

Ajax is all called "Asynchronousjavascriptandxml" (Asynchronous JavaScript and XML), a Web development technology that creates interactive Web applications. It contains the following kinds of technologies organically:

The definition of Ajax (asynchronousjavascript+xml): A representation based on the Web Standard (standards-basedpresentation) xhtml+css Use DOM (Documentobjectmodel) for dynamic display and interaction, use XML and XSLT for data exchange and related operations, asynchronous data querying and retrieval using XMLHttpRequest, and use JavaScript to bind everything together.

Like DHTML or Lamp,ajax is not a single technology, but an organic use of a range of related technologies. In fact, some Ajax-based "derivation/Synthesis" (derivative/composite) technologies are emerging, such as "Aflax".

Ajax applications use a Web browser that supports the above technologies as a running platform. These browsers currently include: Mozilla, Firefox, InternetExplorer, Opera, Konqueror and Safari. However, Opera does not support XSL format objects, nor does it support XSLT.

The core of Ajax technology

Ajax has only the core of JavaScript, XMLHttpRequest, and Dom, and if the data format is XML, it can be added to the XML item (Ajax can be returned from the server side of the data is XML format, can be text and other formats).

In the old interaction, the user triggers an HTTP request to the server, the server processes it, returns a new HTHL page to the client, and every time the server processes a client-submitted request, the client can only wait, and even if it is only a small interaction, By simply getting a very simple piece of data from the server, you return a full HTML page, and the user wastes time and bandwidth each time to reread the entire page.

With Ajax, the user will quickly respond to a wait without a page overload (screen) from almost every operation it feels.

1, XMLHttpRequest

One of the biggest features of Ajax is the fact that you can transfer or read or write data to the server without refreshing the page (also known as no Refresh Update page), which is mainly thanks to the XMLHTTP component XMLHttpRequest object. This can be sent to the desktop application only with the server data level exchange, and do not refresh the interface every time without each time the data processing to the server to do, which is to reduce the burden of the server and accelerate the response speed, shorten the user waiting time.

The first applications xmlhttp Microsoft, IE (IE5 above) by allowing developers to use Xmlhttpactivex components within a Web page to extend their functionality, developers can transfer data directly to or from the server without navigating from the current Web page. This feature is important because it helps to reduce the pain of stateless connections, and it also eliminates the need to download redundant HTML, thereby increasing the speed of the process. The response of Mozilla (Mozilla1.0 above and above NetScape7) is to create its own inherited XML proxy class: the XMLHttpRequest class. Konqueror (and Safariv1.2, also khtml-based browsers) also support XMLHttpRequest objects, and opera will also support v7.6x+ objects in later versions of XMLHttpRequest. For most cases, XMLHttpRequest objects are similar to XMLHTTP components, and methods and properties are similar, except that a small subset of properties are not supported.

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.