Chapter 13Ajax
Ajax is a technique that allows web pages to communicate asynchronously with a server and dynamically updates web pages without reloading. This enables data to be sent and received in the background, as well as portions of a page to be updated in response to user events, while the rest of the program continues to run.
The use of Ajax revolutionized how websites worked and ushered in a new age of web applications. Web pages were no longer static, but dynamic applications.
In this chapter, we’ll cover the following topics:
-
clients and servers
-
a brief history of Ajax
-
communicating with the server using the XMLHttpRequest object
-
receiving data with Ajax
-
sending data with Ajax
-
form data
-
Ajax timeouts
-
JSON with padding
-
our project―obtain ...
Get JavaScript: Novice to Ninja now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.