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="http://www.khapre.org/content/rssLinkGenerator.aspx?showDate=false&showNewWindow=true&type=rss&url=http%3a%2f%2fnews.google.com%2fnews%3fhl%3den%26q%3dIndia%26ie%3dUTF-8%26output%3drss%26ned%3d%3aePkh8BM9EwLbwanF6pmXkplowAm3KQ9iEyvQTgMWuF2pQgwoVhoJhPHNedwQz7lXTWvruzZp_b0AB3kQng"></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="http://www.khapre.org/content/rssLinkGenerator.aspx?showDate=< 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.rssLinkGenerator.aspx on {khapre.org} 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.
< 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.
Leave a comment here, if you face any problems.
1 comments:
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.
Saludos
Mario
Post a Comment