We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,111 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Google API rss feeder

Does anyone know how I can get this script to show all the entries in atom.xml? It only shows the top four right now.

google.load("feeds", "1");

 function initialize() {
      var feed = new google.feeds.Feed("http://thedosblogger.blogspot.com/atom.xml");
      feed.load(function(result) {
        if (!result.error) {
          var container = document.getElementById("feed");
          for (var i = 0; i < result.feed.entries.length; i++) {
            var entry = result.feed.entries[i];
            var div = document.createElement("div");
			var content=document.createElement("div");
			content.innerHTML="<b>"+entry.title+"</b><br><br>"+entry.publishedDate+"<br>"+entry.content+"<br><br>"
            div.appendChild(content);
            container.appendChild(div);
          }
        }
      });
    }
    google.setOnLoadCallback(initialize);
1
Contributor
0
Replies
1
View
Question
Answered
sinopa
Newbie Poster
2 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 3 Years Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0513 seconds using 2.64MB