CHAPTER 8

image

Ajax with jQuery

Ajax, which stands for Asynchronous JavaScript and XML, lets us fetch and send data to and from a server asynchronously, in the background, without interfering with the user’s experience.

In the last chapter, you saw examples of asynchronous behavior. While animations were running, you were able to execute other code, such as changing the element’s background color, and the user (in this case, you) was perfectly able to use the page while the animations were taking place. Nothing seemed different, other than the animation. Fetching data with Ajax is much like that. As a user, you’re unaware of what’s happening until ...

Get Beginning jQuery 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.