Java Reference
In-Depth Information
Chapter
13
Ajax
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 ap-
plications. 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 questions using Ajax
Search WWH ::




Custom Search