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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access