0

I use a plugin to parse rss feeds to my site the HTML mark up is below.

<body>
script src="lib/jquery-1.6.4.min.js"></script>
<script src="src/jquery.rss.js"></script>
<script>
  jQuery(function($) {
    $("#rss-feeds").rss("http://feeds.feedburner.com/premiumpixels")
  })
</script>
</head>
 <body>
     <div id="rss-feeds"></div>

My question is, how can I place the rss url on a another site or server and parse it to my site via JSON?

basically I need to know how to Parse rss urls on my site with the url feeds coming from an external site or server via JSON.

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
Shingai Munyuki
  • 551
  • 1
  • 11
  • 25

1 Answers1

0

You may have difficulty doing cross origin requests if the external site is not controlled by you. The external server will have to have CORS enabled.

Read about it here: Make cross-domain ajax JSONP request with jQuery

Community
  • 1
  • 1
Tom Faltesek
  • 2,768
  • 1
  • 19
  • 30