RSS: How to integrate feeds into your website with AJAX…


June 2nd, 2007

Update 10th November 2007 : Please note the code attached to this post will no longer function correctly with the latest version of SimplePie.

This post is a continuation of Integrating RSS feeds into your website…

Here I will provide the step by step instructions and code samples to make this a simple task. As explained in the previous post, Simplepie is the feed parser that we will utilise for this example.

What you will need :

  1. Download the Simplepie application
  2. Download the Prototype AJAX framework
  3. A little knowledge of PHP, Javascript and HTML

On the front page of the McNicholl Holdings website you will be able to see the end result of this tutorial. Here is how it happens :

<div id="blog_news"><script type="text/Javascript">get_feed('blog_news');</script></div>

When the page loads the Javascript inside the div element above gets called. I have created a simple Javascript function called “get_feed” which handles the AJAX call. This will be included in the files at the end of the tutorial. Obviously you will want to include this Javascript file in your HTML in the HEAD section :

Read the rest of this entry »

Categories: AJAX, RSS, Website

"Thought leadership is how winners are differentiated in business."