Chapter 8. Talk to the server with Ajax

This chapter covers

  • A brief overview of Ajax
  • Loading preformatted HTML from the server
  • Making general GET and POST requests
  • Exerting fine-grained control over requests
  • Setting default Ajax properties
  • Handling Ajax events

It can be successfully argued that no single technology shift has transformed the landscape of the web more than Ajax. The ability to make asynchronous requests back to the server without the need to reload entire pages has enabled a whole new set of user-interaction paradigms and made DOM-scripted applications possible.

Ajax is a less recent addition to the web toolbox than many people may realize. In 1998, Microsoft introduced the ability to perform asynchronous requests under ...

Get jQuery in Action, Second Edition 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.