Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve开发者_运维技巧 this questionIf 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.
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
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/
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.
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
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.
精彩评论