Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

RSSデータを表示する例

From Wiki
Jump to: navigation, search
Article Metadata
Code Example
Source file: Media:RssLib.zip
Compatibility
Platform(s):
Symbian
Article
Translated:
By fnjwikimng
Last edited: hamishwillee (07 May 2013)


アプリケーション中でRSSデータを表示するために本コードを使えます。またこれ自体が、RSSを表示する単体のアプリケーションです。

コードはこちら: File:RssLib.zip

上記に示したzipファイルを全てプロジェクトに追加し、メインHTMLファイルにそれらを組み込みます。

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>
This page was last modified on 7 May 2013, at 23:59.
165 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×