See the figure to understand the differences between common interaction methods and Ajax interaction methods.

Source: Internet
Author: User

Methods In Ajax engine objects:

Abort () stops the current request
GetAllResponseHeaders () returns the complete headers as a string.
GetResponseHeader ("headerLabel") returns a single header label as a string
Open ("method", "URL" [, asyncFlag [, "userName" [, "password"]) creates a call to the server. The method parameter can be GET, POST, or PUT, and the url parameter can be relative URL or absolute URL.

Send (content) sends a request to the server
SetRequestHeader ("header", "value") sets the specified header to the provided value. Before setting any header, you must call open ()

Attributes in the Aaja engine object

Onreadystatechange event trigger
ReadyState object status (integer)
0 = not initialized 1 = reading 2 = read 3 = interaction 4 = completed
The text version of the data returned by the responseText server process
ResponseXML: XML Document Object compatible with DOM returned by the server process
Status Code returned by the status server, such as: 404 = "file not found", 200 = "successful"
Status text returned by the statusText Server
Use Ajax to request servers

Method to use the Ajax Engine

Common Browser Interaction

Ajax interaction in browsers

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.