Ajax Basics Tutorial (3)-3.3 Summary

Source: Internet
Author: User
Tags json object model

This chapter describes the various ways in which the XMLHttpRequest object communicates with the server. The XMLHttpRequest object can send a request using an HTTP GET or POST method, and the request data can be sent as a query string, XML, or JSON data. After the request is processed, the server typically sends simple text, XML data, and even JSON data as a response. Each format has its own most suitable occasion.

If the content of the page is not dynamically updated based on the results of the request, Ajax is not much use. The current browser provides the content of a Web page as an object model that adheres to the standard of the consortium DOM. Based on this object model, you can use scripting languages such as JavaScript to add, update, and delete content on the page without having to establish a roundtrip communication with the server. Although there are some specific areas, but if the Web page is written according to the standard of the world, and use standard JavaScript modification, then in all standard-compatible browsers, most of these pages have the same performance. Today's browsers also support non-standard innerHTML properties that can be used to update elements on a Web page.

You are now familiar with the XMLHttpRequest object and understand how to communicate seamlessly with the server using the XMLHttpRequest object. You also know how to dynamically update the content of a Web page. What are you going to learn next?

The potential of Ajax is endless, and the 4th chapter will talk about it briefly. Knowing how to use Ajax is on the other hand, how to apply it in the right environment. The next chapter describes some of the common scenarios in which Web applications are ideal for Ajax technology.

Back to "Ajax Basics Tutorial-Directory"

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.