<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>tomatomax.net &#187; Javascript</title>
	<atom:link href="http://blog.tomatomax.net/archives/category/program/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.tomatomax.net</link>
	<description>Every rule has its exception.</description>
	<lastBuildDate>Wed, 07 Jul 2010 08:41:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/category/program/javascript/feed" />
		<item>
		<title>twigadge ver2.0 beta2</title>
		<link>http://blog.tomatomax.net/archives/2715</link>
		<comments>http://blog.tomatomax.net/archives/2715#comments</comments>
		<pubDate>Sun, 30 May 2010 08:32:33 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/?p=2715</guid>
		<description><![CDATA[
先日OAuth対応版をリリースしましたが、もうひとつ大きな機能追加を入れましたのでbeta2としてリリースします。
追加した機能ですが、上のスクリーンショットのとおり、黒い外観に変更できるようになりました。
また、リツ [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://blog.tomatomax.net/wp-content/uploads/2010/05/twigadge-ss-2.0.png" title="twigadge-ss-2.0" width="493" height="214" class="alignnone size-full wp-image-2716" /></p>
<p>先日OAuth対応版をリリースしましたが、もうひとつ大きな機能追加を入れましたのでbeta2としてリリースします。<br />
追加した機能ですが、上のスクリーンショットのとおり、黒い外観に変更できるようになりました。<br />
また、リツイート(公式RT)機能に対応しています。</p>
<p>変更点:</p>
<ul>
<li>スキン機能追加(あわせて黒系スキン追加)</li>
<li>リツイート(公式RT)機能追加</li>
<li>バグ修正</li>
</ul>
<p><a href="http://code.google.com/p/twigadge/">ダウンロードページ</a><br />
<a href="http://code.google.com/p/twigadge/wiki/Usage_ja">利用方法</a></p>
<p>もう少し様子を見て、問題なければ正式リリースしたいと思います。</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2715/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2715" />
	</item>
		<item>
		<title>TwitterクライアントのOAuth対応(Javascript編)</title>
		<link>http://blog.tomatomax.net/archives/2696</link>
		<comments>http://blog.tomatomax.net/archives/2696#comments</comments>
		<pubDate>Sun, 16 May 2010 04:02:24 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/?p=2696</guid>
		<description><![CDATA[6月にBasic認証が廃止されるということで、twitterクライアントのOAuth対応が必須となっています。twigadgeの方でもversion2.xとして対応しているわけですが、いろいろ資料を探してもJavascr [...]]]></description>
			<content:encoded><![CDATA[<p>6月にBasic認証が廃止されるということで、twitterクライアントのOAuth対応が必須となっています。twigadgeの方でもversion2.xとして対応しているわけですが、いろいろ資料を探してもJavascriptでの実装例をあまり見かけなかったので、メモとして残しておきます。<br />
基本的な流れは<a href="http://techno-st.net/2009/11/26/twitter-api-oauth-0.html">Twitter API を OAuth で認証するスクリプトを 0 から書いてみた</a>の通りなので、ここではコードの解説を主に書いていきます。</p>
<h2>使用ライブラリ</h2>
<p><a href="http://code.google.com/p/oauth/">Google CodeのOAuthライブラリ</a><br />
# javascriptのものはSource-&gt;Browse以下に置いてあります。</p>
<p><a href="http://jquery.com/">JQuery</a><br />
# ここで使っているのはAjax送信部分だけです。</p>
<h2>認証手順</h2>
<ol>
<li>Twitterでアプリケーション申請をして、Consumer Key/Consumer Secretを発行してもらう (ここでは省略)</li>
<li>Request Token/Request Token Secretを取得する</li>
<li>ユーザをTwitterに誘導してPINを取得してもらう</li>
<li>Request Token/Request Token SecretとPINを元にAccess Token/Access Token Sceretを取得する</li>
<li>Access Token/Access Token Secretを元にAPIにアクセスする</li>
</ol>
<h4>Request Token/Request Token Secretを取得する</h4>
<p>まず、http://twitter.com/oauth/request_tokenにConsumer Keyを送ります。<br />
他のパラメータとして、oauth_signature_methodはHMAC-SHA1、時刻とNonceはOAuth.setTimestampAndNonceで設定しています。パラメータを設定後、OAuth.SignatureMethod.signでConsumer Secretを使って署名を加えた後、OAuth.addToURLでURLにパラメータを付加し、そこにアクセスしています。パラメータのソートはライブラリがやってくれているので気にする必要はありません。どのAPIに対するアクセスも基本的には同じで、送るパラメータ、署名のkeyが変わるだけとなります。</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; TwitterAPI.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">getRequestToken</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> accessor <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; consumerSecret<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">consumer</span>.<span style="color: #660066;">consumerSecret</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; tokenSecret<span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> message <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; method<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;GET&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; action<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://twitter.com/oauth/request_token&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; parameters<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; oauth_signature_method<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;HMAC-SHA1&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; oauth_consumer_key<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">consumer</span>.<span style="color: #660066;">consumerKey</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; OAuth.<span style="color: #660066;">setTimestampAndNonce</span><span style="color: #009900;">&#40;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; OAuth.<span style="color: #660066;">SignatureMethod</span>.<span style="color: #660066;">sign</span><span style="color: #009900;">&#40;</span>message<span style="color: #339933;">,</span> accessor<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> target <span style="color: #339933;">=</span> OAuth.<span style="color: #660066;">addToURL</span><span style="color: #009900;">&#40;</span>message.<span style="color: #660066;">action</span><span style="color: #339933;">,</span> message.<span style="color: #660066;">parameters</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; type<span style="color: #339933;">:</span> message.<span style="color: #660066;">method</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; url<span style="color: #339933;">:</span> target<span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>d<span style="color: #339933;">,</span> dt<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">/* 返り値からRequest Token/Request Token Secretを取り出して、PINを取得するためのURLを作成 */</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; $.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// 送信</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></div>
<h4>Access Token/Access Token Sceretを取得する</h4>
<p>見て分かる通り、Request Token取得のコードとほとんど同じです。異なる点は以下になります</p>
<ul>
<li>API&#8221;http://twitter.com/oauth/access_token&#8221;変更</li>
<li>署名のkeyがConsumer Secret＆Request Token Secretになる</li>
<li>パラメータoauth_tokenとしてRequest Tokenを送る</li>
<li>パラメータoauth_verifierとしてユーザが入力したPINを送る</li>
</ul>
<p>取得したAccess Token / Access Token Secretをクライアントで保存しておけば、再度取得する必要はありません。</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; TwitterAPI.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">getAccessToken</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>pin<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> accessor <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; consumerSecret<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">consumer</span>.<span style="color: #660066;">consumerSecret</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; tokenSecret<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">token_secret</span> <span style="color: #006600; font-style: italic;">// Request Token Secret</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> message <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; method<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;GET&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; action<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http://twitter.com/oauth/access_token&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; parameters<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; oauth_signature_method<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;HMAC-SHA1&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; oauth_consumer_key<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">consumer</span>.<span style="color: #660066;">consumerKey</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; oauth_token<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">token</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">// Request Token</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; oauth_verifier<span style="color: #339933;">:</span> pin<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; OAuth.<span style="color: #660066;">setTimestampAndNonce</span><span style="color: #009900;">&#40;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; OAuth.<span style="color: #660066;">SignatureMethod</span>.<span style="color: #660066;">sign</span><span style="color: #009900;">&#40;</span>message<span style="color: #339933;">,</span> accessor<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> target <span style="color: #339933;">=</span> OAuth.<span style="color: #660066;">addToURL</span><span style="color: #009900;">&#40;</span>message.<span style="color: #660066;">action</span><span style="color: #339933;">,</span> message.<span style="color: #660066;">parameters</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; type<span style="color: #339933;">:</span> message.<span style="color: #660066;">method</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; url<span style="color: #339933;">:</span> target<span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>d<span style="color: #339933;">,</span> dt<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">/* 返り値からAccess Token/Access Token Secretを取り出す */</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; $.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// 送信</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></div>
<h4>GET/POSTを行う</h4>
<p>Access Token / Access Token Secretを取得したら、それを使ってAPIにアクセスします。以下の点が変わります</p>
<ul>
<li>署名のkeyがConsumer Secret＆Access Token Secretになる</li>
<li>パラメータoauth_tokenとしてAccess Tokenを送る</li>
<li>送信データ全てを含めて署名をつける</li>
</ul>
<p>下のコードがTweetを送信している部分になります。</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; TwitterAPI.<span style="color: #660066;">prototype</span>.<span style="color: #660066;">post</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>api<span style="color: #339933;">,</span> content<span style="color: #339933;">,</span> callback<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> accessor <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; consumerSecret<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">consumer</span>.<span style="color: #660066;">consumerSecret</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; tokenSecret<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">atoken_secret</span> <span style="color: #006600; font-style: italic;">// Access Token Secret</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> message <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; method<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;POST&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; action<span style="color: #339933;">:</span> api<span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; parameters<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; oauth_signature_method<span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;HMAC-SHA1&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; oauth_consumer_key<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">consumer</span>.<span style="color: #660066;">consumerKey</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; oauth_token<span style="color: #339933;">:</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">atoken</span> <span style="color: #006600; font-style: italic;">// Access Token</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// 送信するデータをパラメータに追加する</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">var</span> key <span style="color: #000066; font-weight: bold;">in</span> content <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; message.<span style="color: #660066;">parameters</span><span style="color: #009900;">&#91;</span>key<span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> content<span style="color: #009900;">&#91;</span>key<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; OAuth.<span style="color: #660066;">setTimestampAndNonce</span><span style="color: #009900;">&#40;</span>message<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; OAuth.<span style="color: #660066;">SignatureMethod</span>.<span style="color: #660066;">sign</span><span style="color: #009900;">&#40;</span>message<span style="color: #339933;">,</span> accessor<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> target <span style="color: #339933;">=</span> OAuth.<span style="color: #660066;">addToURL</span><span style="color: #009900;">&#40;</span>message.<span style="color: #660066;">action</span><span style="color: #339933;">,</span> message.<span style="color: #660066;">parameters</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> options <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; type<span style="color: #339933;">:</span> message.<span style="color: #660066;">method</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; url<span style="color: #339933;">:</span> target<span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; dataType<span style="color: #339933;">:</span> <span style="color: #3366CC;">'json'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>d<span style="color: #339933;">,</span> dt<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> callback<span style="color: #009900;">&#40;</span>d<span style="color: #339933;">,</span> dt<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; $.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span>options<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// 送信</span><br />
&nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; <br />
&nbsp; <span style="color: #006600; font-style: italic;">// (中略)</span><br />
&nbsp; <br />
&nbsp; &nbsp; <span style="color: #006600; font-style: italic;">/**<br />
&nbsp; &nbsp; &nbsp;* update the status of user<br />
&nbsp; &nbsp; &nbsp;* @param[in] uptext - user status to update<br />
&nbsp; &nbsp; &nbsp;* @param[in] reply_to - target status id for reply<br />
&nbsp; &nbsp; &nbsp;*/</span><br />
&nbsp; &nbsp; updateStatus<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>uptext<span style="color: #339933;">,</span> reply_to<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> content <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #000066;">status</span><span style="color: #339933;">:</span> uptext<span style="color: #339933;">,</span> source<span style="color: #339933;">:</span> <span style="color: #3366CC;">'twigadge'</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>reply_to <span style="color: #339933;">!=</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; content.<span style="color: #660066;">in_reply_to_status_id</span> <span style="color: #339933;">=</span> reply_to<span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; twitterapi.<span style="color: #660066;">post</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'http://twitter.com/statuses/update.json'</span><span style="color: #339933;">,</span> content<span style="color: #339933;">,</span> Twigadge.<span style="color: #660066;">dummy</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; System.<span style="color: #660066;">Gadget</span>.<span style="color: #660066;">Flyout</span>.<span style="color: #660066;">show</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span></div></div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2696/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2696" />
	</item>
		<item>
		<title>twigadge ver2.0 beta</title>
		<link>http://blog.tomatomax.net/archives/2692</link>
		<comments>http://blog.tomatomax.net/archives/2692#comments</comments>
		<pubDate>Sun, 09 May 2010 10:41:17 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/?p=2692</guid>
		<description><![CDATA[TwitterのBasic認証廃止ということで、OAuthに対応したものを作成しました。それと同時にライブラリもようやくJQueryに変更、UI周りのコードも一新したのでとりあえずベータ版として公開です。Basic認証完 [...]]]></description>
			<content:encoded><![CDATA[<p>TwitterのBasic認証廃止ということで、OAuthに対応したものを作成しました。それと同時にライブラリもようやくJQueryに変更、UI周りのコードも一新したのでとりあえずベータ版として公開です。Basic認証完全廃止までには正式リリースしたいところ。<br />
主な変更点</p>
<ul>
<li>OAuth対応</li>
<li>タイムライン取得API変更 Friend→Home Reply→Mentions</li>
<li>Flyout表示時のボタンアイコン追加</li>
<li>Reply/DM表示時に毎回取得をするように変更</li>
<li>ハッシュタグ正規表現変更</li>
</ul>
<p><a href="http://code.google.com/p/twigadge/">ダウンロードページ</a><br />
あと、地味な変更点ですがfrom twigadgeのところのリンク先が今のブログに変更されてます。<br />
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2692/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2692" />
	</item>
		<item>
		<title>twigadge ver1.2</title>
		<link>http://blog.tomatomax.net/archives/2612</link>
		<comments>http://blog.tomatomax.net/archives/2612#comments</comments>
		<pubDate>Sun, 23 Aug 2009 08:33:25 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>
		<category><![CDATA[sidebar gadget]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/?p=2612</guid>
		<description><![CDATA[http://code.google.com/p/twigadge/
ようやくRT機能を実装しました

Reply時にin-reply-to設定を追加
RT機能を追加
幅/高さが範囲外のとき、自動で変更されるように修正
 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/twigadge/">http://code.google.com/p/twigadge/</a><br />
ようやくRT機能を実装しました</p>
<ul>
<li>Reply時にin-reply-to設定を追加</li>
<li>RT機能を追加</li>
<li>幅/高さが範囲外のとき、自動で変更されるように修正</li>
</ul>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2612/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2612" />
	</item>
		<item>
		<title>はてブのお気に入りユーザを隠すスクリプトを更新</title>
		<link>http://blog.tomatomax.net/archives/2606</link>
		<comments>http://blog.tomatomax.net/archives/2606#comments</comments>
		<pubDate>Wed, 05 Aug 2009 04:41:04 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/?p=2606</guid>
		<description><![CDATA[以前書いた、はてブのお気に入りページで、ユーザコメントを隠すGreaseMonkeyスクリプトの更新をしました。今回の変更で、はてブのAutoPagerize機能で継ぎ足されたページに対してもスクリプトが有効になるように [...]]]></description>
			<content:encoded><![CDATA[<p>以前書いた、はてブのお気に入りページで、ユーザコメントを隠すGreaseMonkeyスクリプトの更新をしました。今回の変更で、はてブのAutoPagerize機能で継ぎ足されたページに対してもスクリプトが有効になるようになっています。</p>
<p>ダウンロードは<br />
<a href="http://userscripts.org/scripts/show/43057">userscript.org</a>から<br />
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2606/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2606" />
	</item>
		<item>
		<title>twigadge ver1.1.1</title>
		<link>http://blog.tomatomax.net/archives/2575</link>
		<comments>http://blog.tomatomax.net/archives/2575#comments</comments>
		<pubDate>Mon, 11 May 2009 11:33:42 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/?p=2575</guid>
		<description><![CDATA[http://code.google.com/p/twigadge/
Issueリストに登録された問題の修正

POSTを使ったタイムライン取得機能を削除









]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/twigadge/">http://code.google.com/p/twigadge/</a><br />
Issueリストに登録された問題の修正</p>
<ul>
<li>POSTを使ったタイムライン取得機能を削除</li>
</ul>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2575/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2575" />
	</item>
		<item>
		<title>Hatena::Bookmark hide users in favorite</title>
		<link>http://blog.tomatomax.net/archives/2521</link>
		<comments>http://blog.tomatomax.net/archives/2521#comments</comments>
		<pubDate>Wed, 25 Feb 2009 09:03:39 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/?p=2521</guid>
		<description><![CDATA[最近、はてなブックマークを本格的に使い始めました。特に使っているのが「お気に入り」という他の人のブックマークを表示する機能。でも、お気に入りに追加した人を増やしすぎたためか、コメントで画面が埋め尽くされてしまうことがあり [...]]]></description>
			<content:encoded><![CDATA[<p>最近、<a href="http://b.hatena.ne.jp/">はてなブックマーク</a>を本格的に使い始めました。特に使っているのが「お気に入り」という他の人のブックマークを表示する機能。でも、お気に入りに追加した人を増やしすぎたためか、コメントで画面が埋め尽くされてしまうことがありました。というわけで、「お気に入り」画面でコメントを非表示にするGreaseMonkeyスクリプトを作ってみました。</p>
<p>・使い方<br />
はてブのお気に入り画面を表示するとコメントが非表示になります。<br />
# ページの自動ロードが有効だと2ページ目以降が表示されます＞＜ どうすればいいんだ<br />
・ダウンロード<br />
<a href="http://userscripts.org/scripts/show/43057">userscript.org</a>からダウンロードできます</p>
<p>初めてGreaseMonkeyスクリプトに挑戦してみたけど、手軽にWebサイトをいじれるのがいいですね！ちゃんと本を読んでみようかな</p>
<div class="amazlet-box" style="margin-bottom:0px;">
<div class="amazlet-image" style="float:left;"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798015350/maruguu-22/ref=nosim/" name="amazletlink" target="_blank"><img src="http://ecx.images-amazon.com/images/I/51qNllSP91L._SL160_.jpg" alt="Greasemonkeyスクリプティング TIPS&#038;SAMPLES" style="border: none;" /></a></div>
<div class="amazlet-info" style="float:left;margin-left:15px;line-height:120%">
<div class="amazlet-name" style="margin-bottom:10px;line-height:120%"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798015350/maruguu-22/ref=nosim/" name="amazletlink" target="_blank">Greasemonkeyスクリプティング TIPS&#038;SAMPLES</a>
<div class="amazlet-powered-date" style="font-size:7pt;margin-top:5px;font-family:verdana;line-height:120%">posted with <a href="http://www.amazlet.com/browse/ASIN/4798015350/maruguu-22/ref=nosim/" title="Greasemonkeyスクリプティング TIPS&#038;SAMPLES" target="_blank">amazlet</a> at 09.02.25</div>
</div>
<div class="amazlet-detail">高山 恭介 <br />秀和システム <br />売り上げランキング: 308175</div>
<div class="amazlet-review" style="margin-top:10px; margin-bottom:10px">
<div class="amazlet-review-average" style="margin-bottom:5px">おすすめ度の平均: <img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-4-0.gif" alt="4.0" /></div>
<p><img src="http://images-jp.amazon.com/images/G/09/x-locale/common/customer-reviews/stars-4-0.gif" alt="4" /> 開発者向けならばもう一歩踏み込んでも</div>
<div class="amazlet-link" style="margin-top: 5px"><a href="http://www.amazon.co.jp/exec/obidos/ASIN/4798015350/maruguu-22/ref=nosim/" name="amazletlink" target="_blank">Amazon.co.jp で詳細を見る</a></div>
</div>
<div class="amazlet-footer" style="clear: left"></div>
</div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2521/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2521" />
	</item>
		<item>
		<title>haika</title>
		<link>http://blog.tomatomax.net/archives/2382</link>
		<comments>http://blog.tomatomax.net/archives/2382#comments</comments>
		<pubDate>Tue, 30 Dec 2008 15:00:00 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/archives/2382</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<div class="section">
<p>毎年恒例の年越しプログラミング。</p>
<p><a href="http://f.hatena.ne.jp/maruguu/20081231183331" class="hatena-fotolife" target="_blank"><img src="http://f.hatena.ne.jp/images/fotolife/m/maruguu/20081231/20081231183331.png" alt="f:id:maruguu:20081231183331p:image" title="f:id:maruguu:20081231183331p:image" class="hatena-fotolife"></a></p>
<p><a href="http://code.google.com/p/haika/" target="_blank"> haika &#8211;  Google Code</a></p>
<p>サイドバーで常駐するはてなハイクビューワ。少ないながらも一応公開できるだけの機能を整えたので公開しておきます。</p>
</div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2382/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2382" />
	</item>
		<item>
		<title>twigadge ver1.1</title>
		<link>http://blog.tomatomax.net/archives/2367</link>
		<comments>http://blog.tomatomax.net/archives/2367#comments</comments>
		<pubDate>Sat, 09 Aug 2008 15:00:00 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/archives/2367</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<div class="section">
<p><a href="http://code.google.com/p/twigadge" target="_blank">http://code.google.com/p/twigadge</a></p>
<p>ダイレクトメッセージ対応と細かい点を修正</p>
<ul>
<li>FavoriteのURLを変更</li>
<li>ダイレクトメッセージ対応</li>
<li>クリックで通知を消す機能を追加 </li>
</ul>
<p>機能追加はこんなもんかな。バグがなければ、しばらくは別の開発をするつもり。</p>
</div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2367/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2367" />
	</item>
		<item>
		<title>Flyout</title>
		<link>http://blog.tomatomax.net/archives/2368</link>
		<comments>http://blog.tomatomax.net/archives/2368#comments</comments>
		<pubDate>Sat, 09 Aug 2008 15:00:00 +0000</pubDate>
		<dc:creator>maruguu</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Program]]></category>
		<category><![CDATA[sidebar gadget]]></category>

		<guid isPermaLink="false">http://blog.tomatomax.net/archives/2368</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<div class="section">
<p>Windowsサイドバーガジェットにおいて横に飛び出すやつのこと。</p>
<p><a href="http://f.hatena.ne.jp/maruguu/20080810220925" class="hatena-fotolife" target="_blank"><img src="http://f.hatena.ne.jp/images/fotolife/m/maruguu/20080810/20080810220925.png" alt="f:id:maruguu:20080810220925p:image" title="f:id:maruguu:20080810220925p:image" class="hatena-fotolife"></a></p>
<p>ガジェット本体のHTML文書とは別のHTML文書で記述されている。</p>
<ul>
<li>設定方法</li>
</ul>
<pre class="syntax-highlight">
System.Gadget.Flyout.file = <span class="synConstant">'sendmessage.html'</span>; <span class="synComment">// HTML文書を指定する</span>
</pre>
<p>実行中に切り替えることも可能。ただし、同時に2つ以上開くことはできない。</p>
<ul>
<li>表示</li>
</ul>
<pre class="syntax-highlight">
<span class="synStatement">if</span>(System.Gadget.Flyout.show) <span class="synIdentifier">{</span>
System.Gadget.Flyout.show = <span class="synConstant">false</span>;
<span class="synIdentifier">}</span> <span class="synStatement">else</span> <span class="synIdentifier">{</span>
System.Gadget.Flyout.show = <span class="synConstant">true</span>;
<span class="synIdentifier">}</span>
</pre>
<p>System.Gadget.Flyout.showで現在のFlyoutの状態をtrue(表示),false(非表示)で得ることができる。また、true,falseを代入することで、Flyoutの表示、非表示が可能。</p>
<p>Flyout表示中、別のアプリケーションにフォーカスを移すとFlyoutは閉じる。</p>
<ul>
<li>ガジェットからのアクセス方法</li>
</ul>
<p>System.Gadget.Flyoutオブジェクトから、Flyoutにアクセスする。</p>
<pre class="syntax-highlight">
<span class="synIdentifier">var</span> uptext = System.Gadget.Flyout.<span class="synStatement">document</span>.getElementById(<span class="synConstant">'update-text'</span>);
uptext.value = message;
</pre>
</div>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 336x280, 作成済み 10/04/25 */
google_ad_slot = "6994973421";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript"><!--
google_ad_client = "pub-0582565723906120";
/* 200x90, 作成済み 10/04/25 */
google_ad_slot = "9492987907";
google_ad_width = 200;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tomatomax.net/archives/2368/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://blog.tomatomax.net/archives/2368" />
	</item>
	</channel>
</rss>
