Ajax Notes (i)

Source: Internet
Author: User

The following is a personal understanding, please correct me in the wrong place.

Ajax basic use is mainly used to implement the Web page and the server asynchronous interaction, so that users do not feel or do not wait for the page to refresh.

The core technology of Ajax is the XMLHttpRequest object, which is a Javascripe object.

The techniques used by Ajax are:· HTML is used to build Web forms and determine which fields are used by other parts of the application.
                                  · JavaScript code is the core code for running Ajax applications, helping to improve communication with server applications.
                                  · DHTML or dynamic HTML, which is used to dynamically update forms. We will use Div, span, and other dynamic HTML elements to mark HTML.
                                 · The Document Object Model DOM is used (through JavaScript code) to handle HTML structures and (in some cases) the XML returned by the server

The creation of a XMLHttpRequest object differs depending on the browser.

With Web pages and the Javascripe method and generated XMLHttpRequest objects to invoke, the basic process in an AJAX application is:

1, from the Web form to obtain the required data document.getElementById ("").
2, establish the URL to connect.
3, open the connection to the server Xmlhttprequest.open ().
4, set the server to run after completion of the function Xmlhttprequest.onreadystatechange.
5, send request Xmlhttprequest.send ().

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.