Re: Strange behavior of API

18 views
Skip to first unread message

Jeremy Geerdes

unread,
Aug 8, 2012, 3:58:39 PM8/8/12
to google-ajax...@googlegroups.com
What happens on subsequent pulls from the API? What is the URL you're using to pull from the API?

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrge...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Aug 8, 2012, at 2:49 PM, Balagur wrote:

> 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
> google-ajax...@googlegroups.com
> To unsubscribe from this group, send email to
> google-ajax-searc...@googlegroups.com
> To view this message on the web, visit
> https://groups.google.com/d/msg/google-ajax-search-api/-/q6rZk0lTfrcJ
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Message has been deleted

Balagur

unread,
Aug 8, 2012, 11:13:05 PM8/8/12
to google-ajax...@googlegroups.com
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:58:39 UTC+4 пользователь jgeerdes [AJAX APIs "Guru"] написал:
Reply all
Reply to author
Forward
0 new messages