Chapter 10. Using the Returned Data

In this lesson you will learn how to process the information returned from the server in response to an Ajax request.

The responseText and responseXML Properties

Lesson 9, “Talking with the Server,” discussed the server communications that allow you to send and monitor asynchronous server requests. The final piece of the Ajax jigsaw is the information returned by the server in response to a request.

This lesson discusses what forms that information can take, and how you can process it and use it in an application. We will use two of the XMLHTTPRequest object’s properties, namely responseText and responseXML.

Table 8.1 listed several properties of the XMLHTTPRequest object that we have yet to describe. Among these ...

Get SAMS Teach Yourself Ajax in 10 Minutes 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.