Creating an RSS feed reader plugin

RSS feed readers are very popular additions to many websites. This recipe will show you how to create a configurable feed reader plugin utilizing the Google Feed API, allowing you to easily re-use the plugin on any website.

Getting ready

Once again, copy the jquery.plugin-template.js file and rename it to jquery.rssreader.js to provide the base for this recipe's plugin. Inside the same directory, create recipe-4.js, rssreader.css, and recipe-4.html.

How to do it…

To create the RSS reader plugin, perform the following steps:

  1. Add the following HTML code to recipe-4.html to create a basic web page and to make the Google Feed API available for use within the page:
    <!DOCTYPE html> <html> <head> <title>Chapter 8 :: Recipe ...

Get jQuery 2.0 Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.