December 13, 2005

Using RSS-to-Javascript.com to parse an RSS Feed

PHP & Web Development — Sarah King

A quick search on Google came up with this free service to intelligently parse an RSS feed into a javascript feed.

You don't have full control of the layout but for most of us it will be more than enough.

  1. Go to the Convert a Feed page and enter in the feed name and set some of the values that you want, in our case the number of items and no description.
  2. Click on the Generate JavaScript button - a new window will pop up
  3. Decide which page you want to add the feed to and open the appropriate file in your favourite editor (mine is Zend).
  4. Add these lines to the file, save and upload!
    HTML:
    1. <script language="JavaScript" src="http://convert.rss-to-javascript.com/?simple_chan=1&num=5&src=http%3A%2F%2Fwww.propertyinvestor.info%2Farticles%2Ffeed%2F&target=_blank">
    2. </script>
    3. <noscript>Your browser does not support JavaScript.
    4.     <a title='RSS-to-JavaScript.com: Free RSS to JavaScript Converter' href=http://www.rss-to-javascript.com/?p=151,381&simple_chan=1&num=5&src=http%3A%2F%2Fwww.propertyinvestor.info%2Farticles%2Ffeed%2F&target=_blank&as_html=1>Click to read the latest news</a>.
    5. </noscript>
    6.  <a href=http://www.rss-to-javascript.com target=_blank title='RSS-to-JavaScript.com: Free RSS to JavaScript Converter'><img src=http://www.rss-to-javascript.com/images/rss-to-jss-small.gif alt='RSS to JavaScript' border=0/></a>

Personally I thought they were a bit greedy by having 2 links into their site, but only one is SEF and they do deserve some payback for providing the service :)

Also on this site

Tags: , ,

1 Comment »

  1. Hi Sara,

    Going through some of your post - quite refreshing after reading all those SEO/SEM blogs :)
    I have wrote about similar service way back in July’05 a thttp://www.ibsteam.net/web-development/rssxml-feeds-into-javascript-never-was-easier.html The actual service is Feed2JS http://jade.mcli.dist.maricopa.edu/feed/ - I thought it was pretty simple, plus you can apply CSS to their code. Check it out.
    Recently I noticed a google backlink to my own site from theirs - that actually was the example page that I generated with their tool just to check it out. So, now it counts like a link from EDU site :) Kinda double benefit ;)

    Comment by Max — February 9, 2006 @ 4:54 pm

Leave a comment

RSS feed for comments on this post. TrackBack URI

Pages

Categories:

Other Resources

Subscribe in NewsGator Online
GeoURL