O'Reilly logo

Ajax Starter Kit by Phil Ballard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14. Returning Data as XML

In this lesson you will learn to use XML data returned from the server via the responseXML property of the XMLHTTPRequest object.

Adding the “x” to Ajax

Lesson 12, “Returning Data as Text,” and Lesson 13, “AHAH—Asynchronous HTML and HTTP,” dealt at some length with the string value contained in responseText and looked at several techniques for using this information in applications. These examples ranged from simple updates of page element text to applications using more sophisticated data structures encoded into string values that can be stored and transferred in the responseText property.

The X in Ajax does, of course, stand for XML, and there are good reasons for using the power of XML in your applications. This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required