Reading RSS feed using jQuery

后端 未结 4 1780
心在旅途
心在旅途 2021-01-14 01:12

I\'m trying to show the title of my latest stumbleupon item using their RSS feed and jquery. The function I have is:

function get_stumbleupon() {
    $.get(\         


        
4条回答
  •  一生所求
    2021-01-14 01:46

    As the previous poster (Waage) mentioned, you are probably doing some Cross-site Scripting which is a security violation on most browsers. What you need to do is create some kind of pass through (the client makes a call to your site, your site downloads another site's content, and returns it to the client).

    This is usually pretty easy regardless of whatever server backend you use. It also enables you to do some advanced features with other people's data, like caching.

提交回复
热议问题