Chapter 3. Loading and Manipulating Dynamic Content with AJAX and JSON

In this chapter, we will cover:

  • Loading HTML from a web server into a page
  • Using AJAX and handling server errors
  • Processing JSON data
  • Searching JavaScript objects
  • Sorting JavaScript objects
  • Caching JSON and AJAX requests
  • Creating a search feature
  • Creating an autosuggest feature
  • Waiting for an AJAX response

Introduction

jQuery allows the developer to make AJAX calls that will update website content without the need for refreshing a complete web page. jQuery's AJAX functionality adds an additional dimension to a website that allows it to become more of a web application. This chapter looks at how a developer can make these AJAX requests, receive data, and process it. In addition to processing ...

Get jQuery 2.0 Development Cookbook 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.