Hi Ben,
 
I am trying to find the feeds that matches a query, it displays null, Could 
you please let me know what the error is,
I am using the below code.
<html>
<head>
<script type="text/javascript"  charset=iso-8859-1 src="
http://www.google.com/jsapi";>
</script>
<script type="text/javascript" charset=iso-8859-1>
google.load("feeds", "1") //Load Google Ajax Feed API (version 1)
</script>
</head>
<script type="text/javascript" charset=iso-8859-1>
function OnLoad() { 
  // Query for president feeds on cnn.com 
  var query = 'site:http://rss.slashdot.org/Slashdot/slashdot UK'; 
  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('content'); 
    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.title + 
'</a></p>'; 
    } 
    content.innerHTML = html; 
  } 
} 
 
google.setOnLoadCallback(OnLoad);
</script>
</html>
 
 
Thanks,
LaVa

-- 
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/-/aVh8y_boZG0J
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to