AJAX Http Requests

Source: Internet
Author: User

AJAX Http Requests

Ajax use of HTTP requests
In traditional JavaScript coding, if you want to get any information from a database or file server, or send user information to the server, you will have to make an HTML format and get or post data to the server. Users must click the "Submit" button to send/Get information, wait for the server to respond, and then a new page will load the results.

As the server returns to a new page, the user submits the input, the traditional network application can run slowly, and often inconvenient.

With Ajax, your JavaScript directly with the server, through JavaScript's XMLHttpRequest object

With an HTTP request, a Web page can request and get a response from the Web server-without having to reload the page. The user will continue on the same page, he or she will not be notified, request a Web page script, or send data to the server in the background.


XMLHttpRequest objects
By using the XMLHttpRequest object, a web developer can update the content of the Web page from the server after the page has been loaded!

Ajax technology was popular in 2005 with Google (recommended by Google).

Google recommends using the XMLHttpRequest object to create a vibrant Web interface: When you start typing in Google's search box, a JavaScript sends a letter to a server, and the server returns a list of suggestions.

The XMLHttpRequest object is supported in Internet Explorer 5.0 +, Safari Browser 1.2, Mozilla 1.0/Firefox, Opera 8 + and Netscape 7.
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.