See figure Understanding Common interactive mode and Ajax Interactive way difference _ajax related

Source: Internet
Author: User
Methods in the Ajax engine object:

Abort () Stop 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"]]) establishes a call to the server. The method parameter can be a GET, post, or Put,url parameter can be a relative URL or an absolute URL

Send (content) sends a request to the server
setRequestHeader ("header", "value") sets the specified header to the supplied value and must call open () before any header is set.

Properties in the Aaja engine object

onReadyStateChange event triggers with state changes
ReadyState Object State (integer)
0= uninitialized 1= Read 2 = read 3= interaction 4 = complete
ResponseText The server process returns a text version of the data
Responsexml a compatible DOM XML Document object that returns data to the server process
Status code returned by the status server, such as: 404 = "File not found", 200 = "Success"
StatusText status text information returned by the server
Using AJAX to request a server

Ways to use the Ajax engine

Common ways of interacting with browsers

How Ajax interacts with 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.