Nothing happens (feed is not displaying).
I'm using the following code:
<script type="text/javascript">
function LoadDynamicFeedControl() {
var feeds = [
{title: "One",
url: "
http://news.google.ru/news?hl=ru&gl=ru&q=%D0%B2%D0%BE%D0%BB%D0%B3%D0%B0%D1%82%D0%B5%D0%BB%D0%B5%D0%BA%D0%BE%D0%BC&um=1&ie=UTF-8&output=rss
"
},
{title: "Two",
url: "
http://news.google.ru/news?hl=ru&gl=ru&q=%D1%81%D0%B1%D0%B5%D1%80%D0%B1%D0%B0%D0%BD%D0%BA&um=1&ie=UTF-8&output=rss
"
}];
var options = {
stacked : true,
horizontal : false,
title : "Testing",
numResults : 3
}
new GFdynamicFeedControl(feeds, "feed-control", options);
}
// Load the feeds API and set the onload callback.
google.load("feeds", "1");
google.setOnLoadCallback(LoadDynamicFeedControl);
</script>
And it only shows the second feed. URLs are both the same (except search
query).
среда, 8 августа 2012 г., 23:49:03 UTC+4 пользователь Balagur написал:
>
> I've been trying to get GNEWS Ajax feed api to work and its showing weird
> behaviour. I'm using the very basic example at with LoadDynamicFeedControl
> and it is not work with some queries.
>
> Fails:
> http://news.google.ru/news?hl=ru&gl=ru&q=%D0%B2%D0%BE%D0%BB%D0%B3%D0%B0%D1%82%D0%B5%D0%BB%D0%B5%D0%BA%D0%BE%D0%BC&um=1&ie=UTF-8&output=rss
>
>
> Works:
> http://news.google.ru/news?hl=ru&gl=ru&q=%D1%81%D0%B1%D0%B5%D1%80%D0%B1%D0%B0%D0%BD%D0%BA&um=1&ie=UTF-8&output=rss
>
>
> Whats wrong?
>
>
--
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/msg/google-ajax-search-api/-/d3IZZh46NR8J
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en