Display the latest post in a specified FeedBurner feed. Just set the URL to your desired FeedBurner feed.


/ Published in: jQuery
Save to your folder(s)

This snippet will display the latest post in a specified FeedBurner feed. Just set the URL to your desired FeedBurner feed.

This example assumes that there are 3 elements that this information will be sent to, with the ID attributes set to date, title and description respectively.


Copy this code and paste it in your HTML
  1. $(document).ready(function(){
  2. $.ajax({
  3. type: "GET",
  4. url: "http://feeds.feedburner.com/examplefeed",
  5. success: function(data){
  6. $("#date").text($(data).find("item:first>pubDate:first").text());
  7. $("#title").html("<a href='"+$(data).find("item:first>link:first").text()+"'>"+$(data).find("item:first>title:first").text()+"</a>");
  8. $("#description").html($(data).find("item:first>description:first").text());
  9. }
  10. });
  11. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.