Copyrights @ Journal 2014 - Designed By Templateism - SEO Plugin by MyBloggerLab

Wednesday, June 14, 2006

RSS or Atom Reader for your site

Everybody wants to have RSS or atom feeds displayed on their site. This is with the fact that not everybody can write code to extract the feeds. Sometimes your blog is just HTML based or there can be some other difficulties.
You need an easy way to include the feed links on your website. Try using following javascript include in your HTML page.
<script language="javascript" type="text/javascript" src=""></script>
It displays like this....
How to use it?
Try this Include Generation page. Feel free to generate on your own also.
Here is the Syntax
<script language="javascript" type="text/javascript" src="< DISPLAY_DATE_OPTION >&showNewWindow=< NEW_WINDOW_OPTION >&type=< FEED_TYPE >&url=< YOUR_FEED_URL >"></script>
< DISPLAY_DATE_OPTION > = true|false (Default:false) : Switch for publish date of the Item.
< NEW_WINDOW_OPTION > = true|false (Default:false) : Switch for opening links in new window (_blank).
< FEED_TYPE > = rss|atom : Swith to tell program that what is the feed format.
< YOUR_FEED_URL > = Feed URL that you need to include. Make sure that it is working. Usually if the url has any special characters it needs Encoded URL format. Simlar to it is displayed in the example above.
rssLinkGenerator.aspx on {} will create the HTML Table with all the URLS you need. The page writes table CSS classs as kRSSTable, kRSSTr and kRSSTd classes for table and respective HTML tags. So these can gel into your site theme very easily.
Leave a comment here, if you face any problems.


Anonymous said...

This is a great tool.

Exist a way to instead display just assign a string var with the values? Like JSON stuff.
I want this for display the RSS only ON DEMAND (onclick a link) not every time someone entry to my blog.