Fetching external RSS feeds with jQuery and Google Feed API

Fetching external RSS feeds with jQuery and Google Feed API


Sometimes, you just want to fetch the rss feeds from an external site without touching any server code. jQuery and Google Feed API will save your day.

rss_parser.js:



Then, in your html page or post, use this:

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script>
<script src="/path/to/parser.js"></script>
<div id="myrss" class="box"></div>
<script type="text/javascript">
      $(function(){
            parseRSS(http://mywebsite.com/feed/, #myrss);
      });
</script>

The feeds will be inserted into myrss div.

Reference: https://developers.google.com/feed/v1/reference

download file now

Unknown

About Unknown

Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.

Subscribe to this Blog via Email :