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:
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 4</title> <link href="rssreader.css" rel="stylesheet" type="text/css" /> <script src="jquery.min.js"></script> <script src="https://www.google.com/jsapi"></script> <...