4

If I can't do this would the process for getting the data be: 1) Have my server get the rss data from the desired rss feed. 2) Have the server parse the data. I don't know what rss looks like but I assume some parsing is needed to display it for a user to read. 3) Send the data to the javascript client.

Xavier
  • 8,828
  • 13
  • 64
  • 98

5 Answers5

2

Or you can use the API of Google Feed to load a RSS Feed and parse it as you need. :) I think is a interesting option.

http://code.google.com/intl/es-ES/apis/feed/v1/devguide.html#load_the_javascript_api_and_ajax_search_module

midudev
  • 1,059
  • 15
  • 27
2

You can use Yahoo's YQL system just for this. A decent link via Google:

http://www.wait-till-i.com/2008/12/12/yql-is-so-the-bomb-to-get-web-data-as-xml-or-json/

Funkatron
  • 912
  • 5
  • 13
1

I don't think it is. A JavaScript script can't retrieve files from domains other than the one it was served from, be they RSS or anything else.

Paul D. Waite
  • 96,640
  • 56
  • 199
  • 270
0

I believe u can.

Make an ajax request to php script, then that php script fetch the rss and then pass the result back to your javascript

slier
  • 6,511
  • 6
  • 36
  • 55
0

Another option is to use postrank's api. http://apidocs.postrank.com/w/page/17907957/Feed-API or http://apidocs.postrank.com/w/page/17907977/Top-Posts-API.

They have some options to filter or return only the top posts. plus you can pass it a callback for jsonp fun.

smilbandit
  • 524
  • 3
  • 6