I was trying to find a way to get the latest article posts dynamically on the homepage M2Volt.com. This needed to be client side since it is outside of the CMS we are using for our blog page. I stumbled upon a plugin on the jQuery site, jgfeed, that blew my socks off it was so easy to use and I decided to write this one up.
Check out this jQuery plugin: http://plugins.jquery.com/project/jgfeed
Here is how easy this plugin is to use:
Step 1: Link to the JS
Step 2: Configure a snippet of JS
jQuery.jGFeed('http://www.m2volt.com/blog/feed/',
function(feeds){
// Check for errors
if(!feeds){
// there was an error
return false;
}
// do whatever you want with feeds here
for(var i=0; i"
+ entry.title + "
" + entry.publishedDate + "
" + entry.contentSnippet + "
");
}
}, 3);
This will inject 3 entries to the div with id=”injectRssFeed”
Step 3: Uhh, thats it.
Check out the Latest Blog Posts section: m2volt.com
Mad props to the guys who developed this plugin.


