7.6. Summary

In this chapter, you learned a brief history of online syndication, including the rise of RSS and Atom as the two dominant XML formats for syndication. Next, you learned how to create XParser, a JavaScript RSS/Atom parser that provides an easy-to-use interface for developers of web applications based on RSS and Atom. Using this library, you built two widgets that can easily be used in any Web application.

You first learned how to create a news ticker built upon PHP, DHTML, and Ajax to display news feeds in a scrolling format. You also enabled this widget to auto-update, making sure that the latest information is available for your readers.

The second widget implemented an Ajax search, using MSN's search capabilities to display the search results. Through PHP, this widget retrieved the search result RSS feed, and a static JavaScript object displayed the results to the user.

Get Professional Ajax, 2nd 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.