Is there any callback mechanism to make sure all feeds are loaded ??
Thanks
On Thursday, August 9, 2012 1:19:14 AM UTC+5:30, jgeerdes [AJAX APIs
"Guru"] wrote:
>
> function OnLoad() {
> // Create a feed control
> var feedControl = new google.feeds.FeedControl();
> feedControl.setNumEntries(25);
>
> // Add feeds.
> feedControl.addFeed("
> http://rothstaffing.wordpress.com/category/news/rss");
> feedControl.setLinkTarget("_blank");
> // Draw it.
> feedControl.draw(document.getElementById("articles"));
>
> var feedControl2 = new google.feeds.FeedControl();
> feedControl2.setNumEntries(25);
> feedControl2.addFeed("...");
> feedControl2.draw(document.getElementById('otherArticles'));
>
> ...
> }
>
> Jeremy R. Geerdes
> Generally Cool Guy
> Des Moines, IA
>
> For more information or a project quote:
> [email protected] <javascript:>
>
> If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan
> Church!
>
> On Aug 8, 2012, at 2:46 PM, Jennifer Han wrote:
>
> I'm trying to load 3 separate feeds and have them display in separate divs
> on the same page. Any way to do this?
>
> I'm currently using this for a single feed:
>
> <script src="
> http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0"
> type="text/javascript"></script>
> <script type="text/javascript">
> /* How to use the Feed Control to grab, parse and display feeds. */
>
> google.load("feeds", "1", {'nocss' : 1});
>
> function OnLoad() {
> // Create a feed control
> var feedControl = new google.feeds.FeedControl();
> feedControl.setNumEntries(25);
>
> // Add feeds.
> feedControl.addFeed("
> http://rothstaffing.wordpress.com/category/news/rss");
> feedControl.setLinkTarget("_blank");
> // Draw it.
> feedControl.draw(document.getElementById("articles"));
> }
>
> google.setOnLoadCallback(OnLoad);
> </script>
>
>
> --
> 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] <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> To view this message on the web, visit
> https://groups.google.com/d/msg/google-ajax-search-api/-/5VHFgjsZ4HQJ
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
>
>
>
--
--
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]
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/721f210d-9d3e-4aa8-8a48-af54dfa3200a%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.