[Jane] TheXMLHttpRequestObject

Source: Internet
Author: User
XMLHttpRequest, one of the three Ajax legs, is an important tool. here is the official documentation provided by w3shcools for your reference. What is more important is the last TheXMLHttpRequestObjectReference, which can be used as a manual.   AsAjaxOne of the three legsXMLHttpRequestIs an important tool. here isW3shcoolsProvides more official documents for your reference. What is more important is the finalThe XMLHttpRequest Object ReferenceThis can be used as a manual.

The XMLHttpRequest Object

The XMLHttpRequest object is supported in Internet Explorer 5.0, Safari 1.2, Mozilla 1.0/Firefox, and Netscape 7.

What is an HTTP Request?

With an HTTP request, a web page can make a request to, and get a response from a web server-without reloading the page. the user will stay on the same page, and he or she will not notice that scripts might request pages, or send data to a server in the background.

By using the XMLHttpRequest object, a web developer can change a page with data from the server after the page has loaded.

Google Suggest is using the XMLHttpRequest object to create a very dynamic web inte *** ce: When you start typing in Google's search box, a JavaScript sends the letters off to a server and the server returns a list of suggestions.

Is the XMLHttpRequest Object a W 3C Standard?

The XMLHttpRequest object is not a W 3C Standard.

The W 3C DOM Level 3 'load and save' specification contains some similar functionality, but these are not implemented in any browsers yet. so, at the moment, if you need to send an HTTP request from a browser, you will have to use the XMLHttpRequest object.

Creating an XMLHttpRequest Object

For Mozilla, Firefox, Safari, and Netscape:

var xmlhttp=new XMLHttpRequest()

For Internet Explorer:

var xmlhttp=new ActiveXObject('Microsoft.XMLHTTP')

Example

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.