RSSデータを表示する例
Article Metadata
Code Example
Source file: Media:RssLib.zip
Article
Translated:
From Example of show RSS
By fnjwikimng
Last edited: hamishwillee
(08 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>


(no comments yet)