In the first chunk, you could add the following line before the feedControl.draw call:
feedControl.setNumEntries(250); It looks to me like your second chunk should work. Could you explain more about what's going on there? Jeremy R. Geerdes Effective website design & development Des Moines, IA For more information or a project quote: http://jgeerdes.home.mchsi.com http://jgeerdes.blogspot.com http://jgeerdes.wordpress.com [email protected] Unless otherwise noted, any price quotes contained within this communication are given in US dollars. If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! And check out my blog, Adventures in Web Development, at http://jgeerdes.blogspot.com ! On Jun 6, 2009, at 12:08 PM, Fred wrote: > > Hi people: > > I use FeedControl to display 2 feeds on one page, > ############################################ > <script type="text/javascript"> > > google.load("feeds", "1"); > > function OnLoad() { > // Create a feed control > var feedControl = new google.feeds.FeedControl(); > > // Add 2 feeds. > feedControl.addFeed("http://feed43.com/subflow-mnml-feed.xml", > "Minimal"); > feedControl.addFeed("http://feed43.com/subflow-ambient-feed.xml", > "Ambient"); > Mix"); > > // Draw it. > feedControl.draw(document.getElementById("content")); > } > > google.setOnLoadCallback(OnLoad); > </script> > ########################################### > > but I wish to dislay more than 5 entries for each feeds. > I've try to use HistoricalEntries mixed with code above..no success. > there is an other way to do it ? if not > somebody can help me ?? I'm lost in ajax... :-/ > > ########################################## > google.load("feeds", "1"); > > // Our callback function, for when a feed is loaded. > function feedLoaded(result) { > if (!result.error) { > // Grab the container we will put the results into > var container = document.getElementById("content"); > container.innerHTML = ''; > > // Loop through the feeds, putting the titles onto the page. > // Check out the result object for a list of properties returned > in each entry. > // http://code.google.com/apis/ajaxfeeds/documentation/reference.html#JSON > for (var i = 0; i < result.feed.entries.length; i++) { > var entry = result.feed.entries[i]; > var div = document.createElement("div"); > div.appendChild(document.createTextNode(i + ': ' + > entry.title)); > container.appendChild(div); > } > } > } > > function OnLoad() { > // Create a feed instance that will grab Digg's feed. > var feed = new google.feeds.Feed("http://www.digg.com/rss/ > index.xml"); > > feed.includeHistoricalEntries(); // tell the API we want to have old > entries too > feed.setNumEntries(250); // we want a maximum of 250 entries, if > they exist > > // Calling load sends the request off. It requires a callback > function. > feed.load(feedLoaded); > } > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
