O'Reilly logo

iPhone JavaScript Cookbook by Arturo Fernandez Montoro

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

Embedding an RSS feed

Our goal for this recipe will be to read an RSS feed and present the information provided in our application. In practice, we're going to use a feed offered by The New York Times newspaper, where each item provides a summary and a link to the original web page where the information resides. You could also choose another RSS feed for testing this recipe.

The code for this recipe can be found at code/ch10/rss.html in the code bundle provided on the Packtpub site.

Getting ready

Make sure iWebKit is installed in your computer before continuing.

How to do it...

  1. As you've learned in the previous recipes, you need to create an XHTML file with the required headers for loading the files provided by iWebKit:
    <link href="../iwebkit/css/style.css" ...

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