Java Reference
In-Depth Information
Summary
In this chapter, we have seen how it's possible to use Ajax to update pages and exchange
data asynchronously. This is a powerful feature that has transformed the way JavaScript is
used.
In this chapter, we've learned the following:
• Ajax is a technique for sending and receiving data asynchronously in the back-
ground.
• The data can be sent in many forms, but it is usually inJSON.
• Ajax can be used for making partial page updates without having to do a full page
reload.
• Ajax can be used for communicating with external APIs.
• Ajax requests are made using instances of the XMLHttpRequest object.
• Requests can receive data using a GET request or send data using a POST request.
• JSONP or JSON with Padding is a technique used to bypass the same-origin policy.
It wraps the response data in a JavaScript callback function that is dynamically in-
serted the markup.
In the next chapter, we'll look at the new features in the HTML5 specification and how to
implement them.
Search WWH ::




Custom Search