×
Namespaces

Variants
Actions
Revision as of 02:07, 13 April 2011 by hamishwillee (Talk | contribs)

Example of show RSS

From Nokia Developer Wiki
Jump to: navigation, search


Compatibility: Web Runtime in S60 3rd Edition, Feature Pack 2

You can use this code to show a RSS in your application or the application is just a RSS show.

The code: File:RssLib.zip

Add the files above in the zip to your project and include them in your main html file.

Example or method to use above code to show RSS:

var STORE_KEY_FeedURL = "gf_FeedURL";
var STORE_KEY_FeedName = "gf_FeedName";
 
GF_RSS_URL= "http://answers.yahoo.com/rss/catq?sid=396546051";
GF_RSS_TITLE = "Yahoo! Answers";
 
 
function gf_showRssView()
{
document.getElementById("tickerView").style.display = "none";
widget.setPreferenceForKey(GF_RSS_URL, STORE_KEY_FeedURL);
widget.setPreferenceForKey(GF_RSS_TITLE, STORE_KEY_FeedName);
init();
}


	<style>
@import url("RSSReader.css");
 
</style>
 
<script type="text/javascript" src="FeedUpdateBroker.js"></script>
<script type="text/javascript" src="RSSReader.js"></script>
75 page views in the last 30 days.
×