Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Example Code for a Customized RSS-Feed

DZone's Guide to

Example Code for a Customized RSS-Feed

· Web Dev Zone
Free Resource

Start coding today to experience the powerful engine that drives data application’s development, brought to you in partnership with Qlik.

 A short code snippet for the customized RSS-Feed on this Google-Blogger site. I simply added the below code to a gadget to yield a tailored RSS-Feed in the sidebar. Most of the code was grabbed from the Google Code Playground.

.
 
 
<style type="text/css">
.gf-title {display:none;}
.gf-relativePublishedDate{font:9pt arial;}
.gf-snippet {font:10pt arial; padding-top:5px;}
.gfc-resultsHeader {display:none;}
</style>
 
<!--*******************************-->
 
<img src="http://www.alpinesicherheit.at/analyseberg/logo_landtirol_sw.jpg" alt="Land Tirol" align="top-left" border="4" height="40" width="40">
 
 
 
<script src="http://www.google.com/jsapi?key=AIzaSyA5m1Nc8ws2BbmPRwKu5gFradvD_hgq6G0" type="text/javascript"></script>
    <script type="text/javascript">
    /*
    *  How to use the Feed Control to grab, parse and display feeds.
    */
    
    google.load("feeds", "1");
    
    function OnLoad() {
      // Create a feed control
      var feedControl = new google.feeds.FeedControl();
    
      // Add feed.
      feedControl.addFeed("http://lwdweb.tirol.gv.at/produkte/llb/_today/LLBTirolRss.xml");
    
      // Draw it.
      feedControl.draw(document.getElementById("content"));
    }
    
    google.setOnLoadCallback(OnLoad);
    </script><script src="http://www.google.com/uds/?file=feeds&v=1" type="text/javascript"></script><link href="http://www.google.com/uds/api/feeds/1.0/77f89919ef841f93359ce886504e4e3f/default+en.css" type="text/css" rel="stylesheet"><script src="http://www.google.com/uds/api/feeds/1.0/77f89919ef841f93359ce886504e4e3f/default+en.I.js" type="text/javascript"></script>
  
  <span style="font-family: Arial; font-size: 1.2em; border: none;">
    <div id="content">Loading...</div></span>
<!--!doctype-->

Create data driven applications in Qlik’s free and easy to use coding environment, brought to you in partnership with Qlik.

Topics:

Published at DZone with permission of Kay Cichini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}