I am mystified by the Google Feed API instructions.
For example here
http://code.google.com/apis/ajax/playground/#dynamic_feed_control_-_vertical
the way to set the number of results is numResults : 8, according to
http://www.google.com/uds/solutions/dynamicfeed/reference.html but here
https://developers.google.com/feed/v1/devguide the method to set number of
entries is .setNumEntries(num) - so what is the difference between entries
and results? The code in the playground regarding "numResults : 8" will not
function with .setNumEntries(8), so how does the code in the
playground(http://code.google.com/apis/ajax/playground/#dynamic_feed_control_-_vertical)
differ from the code here: https://developers.google.com/feed/v1/devguide?
What I want to do is use the code regarding the vertical stacking, which is
listed in the playground:
function OnLoad() {
var feeds = [
{
title: 'People',
url: 'http://rss.people.com/web/people/rss/topheadlines/index.xml'
},
{
title: 'E-Online',
url:
'http://www.eonline.com/syndication/feeds/rssfeeds/topstories.xml'
},
{
title: 'TMZ',
url: 'http://www.tmz.com/rss.xml'
}
];
var options = {
stacked : true,
horizontal : false,
title : "Hollywood News"
};
new GFdynamicFeedControl(feeds, 'content', options);
document.getElementById('content').style.width = "500px";
}
google.setOnLoadCallback(OnLoad);
...but I don't know who to insert that in the document:
http://www.google.com/uds/solutions/dynamicfeed/reference.html#hello-world
Furthermore the code
http://www.google.com/uds/solutions/dynamicfeed/reference.html#hello-world
listed for this page
http://www.google.com/uds/solutions/dynamicfeed/helloworld.html seems to
differ from the actual page rendered because in the code only one feed url
is listed but in the rendered page there are three feeds.
--
--
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/44ce24ed-bc3e-44ca-a45f-4e6ae53eaeb7%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/groups/opt_out.