Common XMLHttpRequest Object Properties

Source: Internet
Author: User
request|xml|xmlhttprequest| objects Common XMLHttpRequest Object Methods
Method Description
Abort () Stops the current request
getAllResponseHeaders () Returns complete set of headers (labels and values) as a string
getResponseHeader ("headerlabel") Returns the string value of a single header label
Open ("method", "URL" [, Asyncflag[, "userName" [, "password"]]) Assigns destination URL, method, and optional attributes of a pending request
Send (content) Transmits the request, optionally with postable string or DOM object data
setRequestHeader ("label", "value") Assigns a Label/value pair to the header to is sent with a request
 

Common XMLHttpRequest Object Properties

 

Property Describe
onReadyStateChange Event handlers for events that occur each time the state changes
ReadyState Object state Value:
  • 0 = uninitialized (uninitialized)
  • 1 = loading (loading)
  • 2 = loading complete (loaded)
  • 3 = interaction (interactive)
  • 4 = complete (complete)
ResponseText The string form of the data returned from the server process
Responsexml DOM-compliant document data objects returned from the server process
Status Numeric code returned from the server, such as 404 (not Found) or 200 (ready)
StatusText String information for accompanying status codes


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.