Google RSS Feed Embed

Extension Information
Extension File Name: 
GoogleRssfeed.js
Author: 
Richard Wallis
Extension Class Name: 
GoogleRSSFeedJuice
Function Parameters: 

GoogleRSSFeedJuice(ju,insert,targetDiv,feeds,googleOptions,css)

  • ju - instance of juice
  • insert - JuiceInsert? for page
  • targetDiv - id of element within insert to contain control
  • feeds - RSS feed(s) URLs to display within control
  • googleOptions - options passed to control (info)
  • css - URL of css file to override Google css - optional
Example Code: 

Based upon options passed, displays a Google Dynamic Feed Control in the page. This control then displays the dynamically updated feed(s) within the control. Options for the control are passed on to it. The style of the display is by default controlled by the control's css file. This can be overridden by passing in your own css file.

juice.loadJs("http://{MyServer}/extensions/GoogleRssFeed.js");  var html = '<div id="hpContainer" style="width: 100%; margin-right: auto; margin-left: auto; text-align: left; height: auto;">' +
       
'<div id="hpRight" style="width: 30%; float: right; border-left: 5px;"/>' +
       
'</div>';
var insert = new JuiceInsert(html,"#pageContent","append");
insert
.show();

var googleOptions = {
   numResults
: 10
}

new GoogleRSSFeedJuice(juice,insert,"hpRight", "http://blogs.talis.com/panlibus/feed", googleOptions);