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.
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
How to do it…
To create the RSS reader plugin, perform the following steps:
- Add the following HTML code to
recipe-4.htmlto 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 ...