Hello Guys,
Hope you are doing well.
I am using google api for fetching rss feeds.I am getting list of feeds
properly,but problem is that when I tried to read the actual feed url it is
retruning as undefine/empty string.My code looks like :
<html>
<head>
<script type="text/javascript"
src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("feeds", "1");
function OnLoad() {
// Query for president feeds on cnn.com
var query = 'site:cnn.com president';
google.feeds.findFeeds(query, findDone);
}
function findDone(result) {
// Make sure we didn't get an error.
if (!result.error) {
// Get content div
var content = document.getElementById('feed');
var html = '';
// Loop through the results and print out the title of the feed and
link to
// the url.
for (var i = 0; i < result.entries.length; i++) {
var entry = result.entries[i];
* html += '<p><a href="/feed/v1/' + entry.url + '">' + entry.link
+ '</a></p>';*
}
content.innerHTML = html;
}
}
google.setOnLoadCallback(OnLoad);
</script>
</head>
<body>
<div id="feed"></div>
</body>
</html>
It seems that "*entry.url" *method is not returning any value.Please update
me if there are any changes in API or I am doing something wrong?
--------
Thanks in advance.
Aasif Iqbal
--
--
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/53e07f6f-d112-4433-84cc-d4f096b801dc%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.