<?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>ueblog &#187; Ajax</title>
	<atom:link href="http://ueblog.natural-wave.com/category/webtechnology/ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://ueblog.natural-wave.com</link>
	<description>Web関連のネタを中心に役立つ情報を配信しています。</description>
	<lastBuildDate>Wed, 11 Jan 2012 00:51:56 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ueblog.natural-wave.com/category/webtechnology/ajax/feed/" />
		<item>
		<title>Google AdSense for Mapsを試してみた</title>
		<link>http://ueblog.natural-wave.com/2009/12/13/google-adsense-for-maps/</link>
		<comments>http://ueblog.natural-wave.com/2009/12/13/google-adsense-for-maps/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 15:33:59 +0000</pubDate>
		<dc:creator>ueblog</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://ueblog.natural-wave.com/?p=554</guid>
		<description><![CDATA[Google Maps APIを利用した地図上にAdSenseを表示できる、Google AdSense for Mapsを試してみた。 Google Japan Blog: Google Maps API でマネタイズ AdSense for Mapsには２通りの方法があるようで、今回は地図の位置に合わせて広告が表示できる、「Maps Ad Unit」の導入方法を書いてみます。 PLAIN TEXT JAVASCRIPT: var map; if &#40;GBrowserIsCompatible&#40;&#41;&#41; &#123; &#160; map = new GMap2&#40;document.getElementById&#40;"map_canvas"&#41;&#41;; &#160; map.setCenter&#40;new GLatLng&#40;33.956461,-118.396225&#41;, 13&#41;; &#125; &#160; // 自分のpubidを入力 var publisherID = 'yourPublisherID'; &#160; var adsManagerOptions = &#123; &#160; maxAdsOnMap : 2, &#160; style: 'adunit', [...]]]></description>
			<content:encoded><![CDATA[<p>Google Maps APIを利用した地図上にAdSenseを表示できる、<strong>Google AdSense for Maps</strong>を試してみた。</p>
<p><a href="http://googlejapan.blogspot.com/2009/12/google-maps-api.html" target="_blank">Google Japan Blog: Google Maps API でマネタイズ</a></p>
<p>AdSense for Mapsには２通りの方法があるようで、今回は地図の位置に合わせて広告が表示できる、「<strong>Maps Ad Unit</strong>」の導入方法を書いてみます。</p>
<div class="igBar"><span id="ljavascript-2"><a href="#" onclick="javascript:showPlainTxt('javascript-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-2">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> map;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>GBrowserIsCompatible<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; map = <span style="color: #003366; font-weight: bold;">new</span> GMap2<span style="color: #66cc66;">&#40;</span>document.<span style="color: #006600;">getElementById</span><span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"map_canvas"</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; map.<span style="color: #006600;">setCenter</span><span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> GLatLng<span style="color: #66cc66;">&#40;</span><span style="color: #CC0000;color:#800000;">33</span>.<span style="color: #CC0000;color:#800000;">956461</span>,-<span style="color: #CC0000;color:#800000;">118</span>.<span style="color: #CC0000;color:#800000;">396225</span><span style="color: #66cc66;">&#41;</span>, <span style="color: #CC0000;color:#800000;">13</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// 自分のpubidを入力</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> publisherID = <span style="color: #3366CC;">'yourPublisherID'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> adsManagerOptions = <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; maxAdsOnMap : <span style="color: #CC0000;color:#800000;">2</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; style: <span style="color: #3366CC;">'adunit'</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; channel: <span style="color: #3366CC;">'your_channel_id'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; minZoomLevel: <span style="color: #3366CC;">'6'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">adsManager = <span style="color: #003366; font-weight: bold;">new</span> GAdsManager<span style="color: #66cc66;">&#40;</span>map, publisherID, adsManagerOptions<span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">adsManager.<span style="color: #006600;">enable</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>javascriptで、mapオブジェクトを生成しているところあたりで、GAdsManagerというオブジェクトを作って、enableメソッドを呼ぶだけです。</p>
<p>サンプルの「yourPublishID」の部分は、自分のAdSense管理画面にある、「アカウント情報」タブ→「プロパティ情報」にある「コンテンツ向けAdSense:」に表示されている、</p>
<p>ca-pub-xxxxxxxxxxxxxxx</p>
<p>を利用する。</p>
<p>「maxAdsOnMap」は広告の表示数（デフォルト3）</p>
<p>「your_channel_id」に関しては、チャネルを利用して効果をトラッキングしている方は指定しましょう。チャネルIDは「AdSense設定」タブの「チャネル」に表示されています。</p>
<p>「maxAdsOnMap」は広告を表示するズームレベル（デフォルト6）ということですが、ズームレベルに関係なく表示されているようです。</p>
<p>詳しいドキュメントは下記です。</p>
<p><a href="http://code.google.com/intl/ja/apis/maps/documentation/reference.html#GAdsManager" target="_blank">Maps APIのドキュメント</a></p>
<p>とても簡単ですね。</p>
<p>ちなみに「<a href="http://roadmap.oflive.net/" target="_blank">渋滞道路情報マップ</a>」に表示させてみました。</p>
<p>あんまりマッチしてない気がしますが、、利用していると改善されるかも。</p>
]]></content:encoded>
			<wfw:commentRss>http://ueblog.natural-wave.com/2009/12/13/google-adsense-for-maps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ueblog.natural-wave.com/2009/12/13/google-adsense-for-maps/" />
	</item>
		<item>
		<title>jQuery Gallery Scroller</title>
		<link>http://ueblog.natural-wave.com/2008/05/26/jquery-gallery-scroller/</link>
		<comments>http://ueblog.natural-wave.com/2008/05/26/jquery-gallery-scroller/#comments</comments>
		<pubDate>Sun, 25 May 2008 15:32:30 +0000</pubDate>
		<dc:creator>ueblog</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://ueblog.natural-wave.com/2008/05/26/jquery-gallery-scroller/</guid>
		<description><![CDATA[久々にjQueryネタ。 写真をアルバムのようにスライドしてくれる、jQueryプラグイン、jqCalScrollのご紹介。 実装方法は簡単。プラグインとjQueryのライブラリを読み込んで、呼んであげるだけ。HTMLはul要素で書くだけ。 PLAIN TEXT HTML: &#60;html&#62; &#60;head&#62; &#60;script type="text/javascript" src="/js/jquery-1.2.1.min.js"&#62;&#60;/script&#62; &#60;script type="text/javascript" src="/js/jqgalscroll.js"&#62;&#60;/script&#62; &#60;script type="text/javascript"&#62; &#160; &#160; $(document).ready(function(){ &#160; &#160; &#160; &#160; $(&#34;#demoOne&#34;).jqGalScroll(); &#160; &#160; }); &#60;/script&#62; &#60;style type="text/css"&#62; &#160; &#160; @import url(&#34;common/css/jqGalScroll.css&#34;); &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;ul id="demoOne"&#62; &#160; &#160; &#60;li&#62;&#60;img src="http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7204.jpg" border="0"/&#62;&#60;/li&#62; &#160; &#160; &#60;li&#62;&#60;img src="http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7209.jpg" border="0"/&#62;&#60;/li&#62; &#160; &#160; &#60;li&#62;&#60;img src="http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7217.jpg" border="0"/&#62;&#60;/li&#62; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>久々にjQueryネタ。</p>
<p>写真をアルバムのようにスライドしてくれる、jQueryプラグイン、<a href="http://benjaminsterling.com/jquery-jqgalscroll-photo-gallery/" target="_blank">jqCalScroll</a>のご紹介。</p>
<p>実装方法は簡単。プラグインとjQueryのライブラリを読み込んで、呼んであげるだけ。HTMLはul要素で書くだけ。</p>
<div class="igBar"><span id="lhtml-4"><a href="#" onclick="javascript:showPlainTxt('html-4'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-4">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/js/jquery-1.2.1.min.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"/js/jqgalscroll.js"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">&lt;script</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/javascript"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $(document).ready(function(){</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; $(&quot;#demoOne&quot;).jqGalScroll();</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; });</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;">&lt;style</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"text/css"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; @import url(&quot;common/css/jqGalScroll.css&quot;);</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">&lt;ul</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"demoOne"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7204.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7209.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7217.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">&lt;li&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/img.html"><span style="color: #000000; font-weight: bold;">&lt;img</span></a> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">"http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7238.jpg"</span> <span style="color: #000066;">border</span>=<span style="color: #ff0000;">"0"</span>/<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><u style=display:none><a href="http://www.furrypuppet.com/jim/phe/Phentermine-buy-order.html">Phentermine buy order</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Mephentermine.html">Mephentermine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Methamphetamine.html">Methamphetamine</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Bulk-phentermine.html">Bulk phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Metolazone.html">Metolazone</a><br />
<a href="http://www.furrypuppet.com/jim/via/Information-about-viagra.html">Information about viagra</a><br />
<a href="http://www.furrypuppet.com/jim/via/Online-pharmacy-viagra.html">Online pharmacy viagra</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Prednisone.html">Prednisone</a><br />
<a href="http://www.furrypuppet.com/jim/hyd/Book-hydrocodone-sport.html">Book hydrocodone sport</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Clopidogrel.html">Clopidogrel</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-prescriptions-online-physiphen-online.html">Phentermine prescriptions online physiphen online</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Acetazolamide.html">Acetazolamide</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-side-effects.html">Phentermine side effects</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy/Diprolene.html">Diprolene</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Carisoprodol.html">Carisoprodol</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Ketoprofen.html">Ketoprofen</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Heroin.html">Heroin</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Xanax-drug-test.html">Xanax drug test</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-forums.html">Phentermine forums</a><br />
<a href="http://www.furrypuppet.com/jim/via/Viagra-free-pill.html">Viagra free pill</a><br />
<a href="http://www.furrypuppet.com/jim/via/Discount-generic-viagra.html">Discount generic viagra</a><br />
<a href="http://www.furrypuppet.com/jim/via/Viagra-lowest-prices.html">Viagra lowest prices</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy/Orlistat.html">Orlistat</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Herbal-phentermine-side-effects.html">Herbal phentermine side effects</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Xanax-mexico.html">Xanax mexico</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-rankings.html">Phentermine rankings</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Anisindione.html">Anisindione</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Prempro.html">Prempro</a><br />
<a href="http://www.furrypuppet.com/jim/via/Buy-cialis-viagra.html">Buy cialis viagra</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Is-it-safe-to-take-prozac-and-phentermine.html">Is it safe to take prozac and phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-hoodia.html">Phentermine hoodia</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Tobramycin.html">Tobramycin</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Diltiazem.html">Diltiazem</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-ephedrine.html">Phentermine ephedrine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Isoproterenol.html">Isoproterenol</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Discount-phentermine-price.html">Discount phentermine price</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Discount-online-phentermine.html">Discount online phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/via/Side-effects-from-viagra.html">Side effects from viagra</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Ambenonium.html">Ambenonium</a><br />
<a href="http://www.furrypuppet.com/jim/cia/Buy-cheap-cialis-online.html">Buy cheap cialis online</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Lotrel.html">Lotrel</a><br />
<a href="http://www.furrypuppet.com/jim/cia/Cialis-experience.html">Cialis experience</a><br />
<a href="http://www.furrypuppet.com/jim/via/Best-herbal-viagra.html">Best herbal viagra</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy/Amoxil.html">Amoxil</a><br />
<a href="http://www.furrypuppet.com/jim/via/Viagra-alternate.html">Viagra alternate</a><br />
<a href="http://www.furrypuppet.com/jim/via/Viagra-treatment-migraine-headache.html">Viagra treatment migraine headache</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Isoflurophate.html">Isoflurophate</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Yasmin.html">Yasmin</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy/Carisoprodol.html">Carisoprodol</a><br />
<a href="http://www.furrypuppet.com/jim/cia/Generic-cialis-overnight.html">Generic cialis overnight</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Fenoldopam.html">Fenoldopam</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Side-effects-phentermine-gynecomastia.html">Side effects phentermine gynecomastia</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Biaxin.html">Biaxin</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Online-phentermine-sale.html">Online phentermine sale</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Cheap-xanax-online.html">Cheap xanax online</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Next-day-phentermine.html">Next day phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Hexamethonium.html">Hexamethonium</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Tolbutamide.html">Tolbutamide</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Adipex-p-phentermine.html">Adipex p phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-alternatives.html">Phentermine alternatives</a><br />
<a href="http://www.furrypuppet.com/jim/cia/Cialis-drug-interactions.html">Cialis drug interactions</a><br />
<a href="http://www.furrypuppet.com/jim/via/Buy-viagra-uk.html">Buy viagra uk</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy/Differin.html">Differin</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Idarubicin.html">Idarubicin</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Next-day-delivery-on-phentermine.html">Next day delivery on phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/cia/Generic-cialis-from-india.html">Generic cialis from india</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-fda.html">Phentermine fda</a><br />
<a href="http://www.furrypuppet.com/jim/fio/Generic-fioricet.html">Generic fioricet</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Cheep-phentermine.html">Cheep phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Takin-prozac-and-xanax.html">Takin prozac and xanax</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Minoxidil.html">Minoxidil</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Online-doctors-perscriptions-xanax-steroids.html">Online doctors perscriptions xanax steroids</a><br />
<a href="http://www.furrypuppet.com/jim/tra/Combining-ativan-and-neurontin-and-tramadol.html">Combining ativan and neurontin and tramadol</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy/Accupril.html">Accupril</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Lynestrenol.html">Lynestrenol</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy/Prednisone.html">Prednisone</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Xenical-hgh-phentermine-quit-smoking-detox.html">Xenical hgh phentermine quit smoking detox</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Bentyl.html">Bentyl</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Etanercept.html">Etanercept</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Xanax-in-early-pregnancy.html">Xanax in early pregnancy</a><br />
<a href="http://www.furrypuppet.com/jim/tra/Tramadol-without-perscription.html">Tramadol without perscription</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Cefamandole.html">Cefamandole</a><br />
<a href="http://www.furrypuppet.com/jim/tra/Urine-drug-testing-of-tramadol.html">Urine drug testing of tramadol</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Xanax-detox.html">Xanax detox</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Reliable-same-or-next-day-phentermine-purchase-online.html">Reliable same or next day phentermine purchase online</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Bactrim.html">Bactrim</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Adipex-cheap-phentermine.html">Adipex cheap phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Dimenhydrinate.html">Dimenhydrinate</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Addicted-to-xanax.html">Addicted to xanax</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Mebendazole.html">Mebendazole</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Amrinone.html">Amrinone</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Herbal-phentermine.html">Herbal phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Amiodarone.html">Amiodarone</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Diet-pill-phentermine.html">Diet pill phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Oxyphencyclimine.html">Oxyphencyclimine</a><br />
<a href="http://www.furrypuppet.com/jim/via/Generica-viagra.html">Generica viagra</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Heparin.html">Heparin</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Cheap-phentermine-without-prescription.html">Cheap phentermine without prescription</a><br />
<a href="http://www.furrypuppet.com/jim/via/Canada-viagra.html">Canada viagra</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Primaquine.html">Primaquine</a><br />
<a href="http://www.furrypuppet.com/jim/via/Bush-inauguration-speech-draft-viagra-bastard-of.html">Bush inauguration speech draft viagra bastard of</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Glyburide.html">Glyburide</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Chlorhexidine.html">Chlorhexidine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Aminopterin.html">Aminopterin</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Avelox.html">Avelox</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-and-topiramate-for-weightloss.html">Phentermine and topiramate for weightloss</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-drug-information.html">Phentermine drug information</a><br />
<a href="http://www.furrypuppet.com/jim/hyd/Hydrocodone-withdrawal-symptom.html">Hydrocodone withdrawal symptom</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Timolol.html">Timolol</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-30mg-cap.html">Phentermine 30mg cap</a><br />
<a href="http://www.furrypuppet.com/jim/cia/Cialis-generic-india.html">Cialis generic india</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Anxiety-disorder-xanax.html">Anxiety disorder xanax</a><br />
<a href="http://www.furrypuppet.com/jim/cia/Cialis-compared-to-viagra.html">Cialis compared to viagra</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Buy-phentermine-cheap.html">Buy phentermine cheap</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-37.5mg-cheap.html">Phentermine 37.5mg cheap</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Xanax-without-a-prescription.html">Xanax without a prescription</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-online-pay-with-mastercard.html">Phentermine online pay with mastercard</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Time-released-xanax.html">Time released xanax</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-guaranteed-overnight-shipping.html">Phentermine guaranteed overnight shipping</a><br />
<a href="http://www.furrypuppet.com/jim/via/Mark-martin-uniform-jacket-team-caliber-viagra.html">Mark martin uniform jacket team caliber viagra</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-and-methamphetamine.html">Phentermine and methamphetamine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Methoxamine.html">Methoxamine</a><br />
<a href="http://www.furrypuppet.com/jim/via/Viagra-supplier.html">Viagra supplier</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Ethotoin.html">Ethotoin</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Information-medical-phentermine.html">Information medical phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Meclofenamate.html">Meclofenamate</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Xanax-no-prescription-overnight-delivery.html">Xanax no prescription overnight delivery</a><br />
<a href="http://www.furrypuppet.com/jim/tra/Tramadol-dogs.html">Tramadol dogs</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Diazoxide.html">Diazoxide</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Enalapril.html">Enalapril</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Online-xanax.html">Online xanax</a><br />
<a href="http://www.furrypuppet.com/jim/hyd/Hydrocodone-m367.html">Hydrocodone m367</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Xanax-xr.html">Xanax xr</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Leuprolide.html">Leuprolide</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Drug-screening-phentermine.html">Drug screening phentermine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Azathioprine.html">Azathioprine</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Propafenone.html">Propafenone</a><br />
<a href="http://www.furrypuppet.com/jim/via/Amsterdam-holland-viagra.html">Amsterdam holland viagra</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Xanax-no-prescription.html">Xanax no prescription</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Cozaar.html">Cozaar</a><br />
<a href="http://www.furrypuppet.com/jim/som/Order-soma.html">Order soma</a><br />
<a href="http://www.furrypuppet.com/jim/via/Price-for-generic-viagra.html">Price for generic viagra</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-weight-loss-pill.html">Phentermine weight loss pill</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy/Paroxetine.html">Paroxetine</a><br />
<a href="http://www.furrypuppet.com/jim/vic/Buy-cheap-vicodin.html">Buy cheap vicodin</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Phentermine-blogging.html">Phentermine blogging</a><br />
<a href="http://www.furrypuppet.com/jim/phe/Buy-phentermine-online-prescription.html">Buy phentermine online prescription</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Xanax-vs-klonopin.html">Xanax vs klonopin</a><br />
<a href="http://www.furrypuppet.com/jim/xan/Generic-xanax-2mg.html">Generic xanax 2mg</a><br />
<a href="http://www.furrypuppet.com/jim/pharmacy2/Etodolac.html">Etodolac</a><br />
</u><br />
<script type="text/javascript" src="/js/jquery-1.2.1.min.js"></script><br />
<script type="text/javascript" src="/js/jqgalscroll.js"></script><br />
<script type="text/javascript">
	$(document).ready(function(){
		$("#demoOne").jqGalScroll({
                        height: 370,
                        width: 450
               });
	});
</script>
<link rel="stylesheet" href="/js/jqGalScroll.css" type="text/css" />
<ul id="demoOne">
<li><img src="http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7204.jpg" border="0"/></li>
<li><img src="http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7209.jpg" border="0"/></li>
<li><img src="http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7217.jpg" border="0"/></li>
<li><img src="http://ueblog.natural-wave.com/wp-content/uploads/2008/05/s-dscn7238.jpg" border="0"/></li>
</ul>
<p>これはすごい！</p>
]]></content:encoded>
			<wfw:commentRss>http://ueblog.natural-wave.com/2008/05/26/jquery-gallery-scroller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ueblog.natural-wave.com/2008/05/26/jquery-gallery-scroller/" />
	</item>
		<item>
		<title>Googleのグラフが簡単に書けるAPI</title>
		<link>http://ueblog.natural-wave.com/2007/12/11/google-chart-api/</link>
		<comments>http://ueblog.natural-wave.com/2007/12/11/google-chart-api/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 15:16:21 +0000</pubDate>
		<dc:creator>ueblog</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://ueblog.natural-wave.com/2007/12/11/google-chart-api/</guid>
		<description><![CDATA[とうとうGoogleからグラフを簡単に書けるAPIがでました！ 利用方法はimg srcタグにそのままAPIのURLを入れるだけでグラフ画像が生成される。 早速、試してみよう。 グラフの種類 Line Chart Bar Chart Pie Chart Venn diagrams Scatter plots APIについて グラフごとに必須となる項目（データ、ラベルなどの指定）]]></description>
			<content:encoded><![CDATA[<p>とうとうGoogleからグラフを簡単に書けるAPIがでました！</p>
<p>利用方法はimg srcタグにそのままAPIのURLを入れるだけでグラフ画像が生成される。<br />
早速、試してみよう。</p>
<h3>グラフの種類</h3>
<p><strong>Line Chart</strong><br />
<img src="http://chart.apis.google.com/chart?cht=lc&#038;chd=s:UVVUVVUUUVVUSSVVVXXYadfhjlllllllmmliigdbbZZXVVUUUTU&#038;chco=0000FF&#038;chls=2.0,1.0,0.0&#038;chxt=x,y&#038;chxl=0:|Jan|Feb|Mar|Jun|Jul|Aug|1:|0|25|50|75|100&#038;chs=350x150&#038;chg=100.0,25.0&#038;chf=c,ls,0,CCCCCC,0.2,ffffff,0.2"></p>
<p><strong>Bar Chart</strong><br />
<img src="http://chart.apis.google.com/chart?cht=bhs&#038;chco=ff0000,00ff00,0000ff,&#038;chs=350x150&#038;chd=s:FOE,THE,Bar&#038;chxt=x,y&#038;chxl=1:|Dec|Nov|Oct|0:||20K||60K||100K|"></p>
<p><strong>Pie Chart</strong><br />
<img src="http://chart.apis.google.com/chart?cht=p3&#038;chd=s:Uf9a&#038;chs=350x150&#038;chl=A|B|C|D"></p>
<p><strong>Venn diagrams</strong><br />
<img src="http://chart.apis.google.com/chart?cht=v&#038;chs=350x150&#038;chd=t:100,80,60,30,30,30,10"></p>
<p><strong>Scatter plots</strong><br />
<img src="http://chart.apis.google.com/chart?cht=s&#038;chd=s:984sttvuvkQIBLKNCAIi,DEJPgq0uov17zwopQODS,AFLPTXaflptx159gsDrn&#038;chxt=x,y&#038;chxl=0:|0|2|3|4|5|6|7|8|9|10|1:|0|25|50|75|100&#038;chs=350x150"></p>
<h3>APIについて</h3>
<p>グラフごとに必須となる項目（データ、ラベルなどの指定）がさまざま。バックグラウンドの色など含め、さまざまな効果をURLパラメータで指定できる。返ってくる画像はPNG方式。</p>
<p>パラメーターの意味はすこし難しいけど、これは便利だ！</p>
<p>利用方法的には、さまざまなデータをブログやインターネットサービスで公開するときが考えられるが、会社の売上げやら、サービスのPVなどをグラフ化しようとして、機密情報をGoogleに送るのはさすがにNGでしょう。（というか通信は暗号化されないので。）</p>
<p>詳しい仕様は下記へ<br />
<a href="http://code.google.com/apis/chart/" target="_blank">Developer's Guide - Google Chart API - Google Code</a></p>
<p>関連記事</p>
<blockquote><p><a href="http://www.ideaxidea.com/archives/2007/12/apigooglegoogle_charts.html" target="_blank">これは便利！誰でも簡単にグラフを描けるAPIがGoogleから登場！『Google Charts』</a></p>
<p><a href="http://blog.livedoor.jp/dankogai/archives/50964219.html" target="_blank">Google Code Chart - 折れ線グラフうぃざ～ど</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ueblog.natural-wave.com/2007/12/11/google-chart-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ueblog.natural-wave.com/2007/12/11/google-chart-api/" />
	</item>
		<item>
		<title>HeartRails Express APIを利用して路線と駅のプルダウンをつくろう</title>
		<link>http://ueblog.natural-wave.com/2007/12/09/heartrails-express-api/</link>
		<comments>http://ueblog.natural-wave.com/2007/12/09/heartrails-express-api/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 15:01:05 +0000</pubDate>
		<dc:creator>ueblog</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[API]]></category>

		<guid isPermaLink="false">http://ueblog.natural-wave.com/2007/12/09/heartrails-express-api/</guid>
		<description><![CDATA[路線や駅情報を提供してくれる、HeartRails ExpressのAPIを利用して、路線と駅のプルダウンを作成してみます。 HeartRails ExpressのAPIは、JSONPをサポートしているので、javascriptだけでできてしまいます。 利用するライブラリは、 JQuery selectタグの操作を楽にしてくれるJQueryのプラグイン JSONPをサポ]]></description>
			<content:encoded><![CDATA[<p>路線や駅情報を提供してくれる、<a href="http://express.heartrails.com/" target="_blank">HeartRails Express</a>のAPIを利用して、路線と駅のプルダウンを作成してみます。</p>
<p>HeartRails ExpressのAPIは、JSONPをサポートしているので、javascriptだけでできてしまいます。</p>
<p>利用するライブラリは、<br />
<a href="http://jquery.com/"  target="_blank">JQuery</a></p>
<p><a href="http://jqueryjs.googlecode.com/svn/trunk/plugins/selectboxes/" target="_blank">selectタグの操作を楽にしてくれるJQueryのプラグイン</a></p>
<p><a href="http://www.xml.com/pub/a/2005/12/21/json-dynamic-script-tag.html" target="_blank">JSONPをサポートしてくれるライブラリjsr_class.js</a></p>
<p>ダウンロードして、jsファイルをとりだし、下記のように宣言してあげます。</p>
<div class="igBar"><span id="ljavascript-8"><a href="#" onclick="javascript:showPlainTxt('javascript-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-8">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color: #3366CC;">"js/jquery-1.2.1.min.js"</span> type=<span style="color: #3366CC;">"text/javascript"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color: #3366CC;">"js/jsr_class.js"</span> type=<span style="color: #3366CC;">"text/javascript"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color: #3366CC;">"js/jquery.selectboxes.pack.js"</span> type=<span style="color: #3366CC;">"text/javascript"</span>&gt;&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
パスは適宜置き換えてください。</p>
<p>そして、実装コードはこんな感じになります。</p>
<div class="igBar"><span id="ljavascript-9"><a href="#" onclick="javascript:showPlainTxt('javascript-9'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-9">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//&lt;![CDATA[</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// 都道府県プルダウン変更時</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> prefObj = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> PrefChange<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#pref"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">val</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> url = <span style="color: #3366CC;">'http://express.heartrails.com/api/json?method=getLines'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; + <span style="color: #3366CC;">'&amp;prefecture='</span> + encodeURIComponent<span style="color: #66cc66;">&#40;</span> $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#pref"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">val</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; + <span style="color: #3366CC;">'&amp;jsonp=PrefCallback'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; prefObj = <span style="color: #003366; font-weight: bold;">new</span> JSONscriptRequest<span style="color: #66cc66;">&#40;</span> url <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; prefObj.<span style="color: #006600;">buildScriptTag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; prefObj.<span style="color: #006600;">addScriptTag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#train"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">removeOption</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/./</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> PrefCallback<span style="color: #66cc66;">&#40;</span>json<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>!json<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span>; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>json.<span style="color: #006600;">response</span>.<span style="color: #006600;">line</span>.<span style="color: #006600;">length</span> == <span style="color: #CC0000;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span>; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #003366; font-weight: bold;">var</span> lines = json.<span style="color: #006600;">response</span>.<span style="color: #006600;">line</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #003366; font-weight: bold;">var</span> options = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i = <span style="color: #CC0000;color:#800000;">0</span>; i &lt;lines.<span style="color: #006600;">length</span>; i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; options<span style="color: #66cc66;">&#91;</span>lines<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span> = lines<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#train"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">removeOption</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/./</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#train"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addOption</span><span style="color: #66cc66;">&#40;</span>options,<span style="color: #003366; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; prefObj.<span style="color: #006600;">removeScriptTag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">// 路線プルダウン変更時</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">var</span> trainObj = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> TrainChange<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>$<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#train"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">val</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> url = <span style="color: #3366CC;">'http://express.heartrails.com/api/json?method=getStations'</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; + <span style="color: #3366CC;">'&amp;line='</span> + encodeURIComponent<span style="color: #66cc66;">&#40;</span> $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#train"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">val</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; + <span style="color: #3366CC;">'&amp;jsonp=TrainCallback'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; trainObj = <span style="color: #003366; font-weight: bold;">new</span> JSONscriptRequest<span style="color: #66cc66;">&#40;</span> url <span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; trainObj.<span style="color: #006600;">buildScriptTag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; trainObj.<span style="color: #006600;">addScriptTag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#station"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">removeOption</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/./</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #003366; font-weight: bold;">function</span> TrainCallback<span style="color: #66cc66;">&#40;</span>json<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>!json<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span>; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #66cc66;">&#40;</span>json.<span style="color: #006600;">response</span>.<span style="color: #006600;">station</span>.<span style="color: #006600;">length</span> == <span style="color: #CC0000;color:#800000;">0</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #000066; font-weight: bold;">return</span>; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #003366; font-weight: bold;">var</span> stations = json.<span style="color: #006600;">response</span>.<span style="color: #006600;">station</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #003366; font-weight: bold;">var</span> options = <span style="color: #66cc66;">&#123;</span><span style="color: #66cc66;">&#125;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #000066; font-weight: bold;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i = <span style="color: #CC0000;color:#800000;">0</span>; i &lt;stations.<span style="color: #006600;">length</span>; i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; options<span style="color: #66cc66;">&#91;</span>stations<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #000066;">name</span><span style="color: #66cc66;">&#93;</span> = stations<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>.<span style="color: #000066;">name</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#station"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">removeOption</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066FF;">/./</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; $<span style="color: #66cc66;">&#40;</span><span style="color: #3366CC;">"#station"</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">addOption</span><span style="color: #66cc66;">&#40;</span>options,<span style="color: #003366; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; trainObj.<span style="color: #006600;">removeScriptTag</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900; font-style: italic;">//]]&gt;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>HTMLはシンプルにこんな感じで。（都道府県は省略しました・・・。都道府県の値もAPIから取得できますが。手抜きで。）</p>
<div class="igBar"><span id="lhtml-10"><a href="#" onclick="javascript:showPlainTxt('html-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-10">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/select.html"><span style="color: #000000; font-weight: bold;">&lt;select</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"pref"</span> <span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"PrefChange();"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">&lt;option</span></a> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>都道府県を選択<span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">&lt;option</span></a> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"東京都"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>東京都<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">&lt;option</span></a> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"神奈川県"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>神奈川県<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">&lt;option</span></a> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"埼玉県"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>埼玉県<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">&lt;option</span></a> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"千葉県"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>千葉県<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/select&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">&lt;br</span></a> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">&lt;br</span></a> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/select.html"><span style="color: #000000; font-weight: bold;">&lt;select</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"train"</span> <span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"TrainChange();"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">&lt;option</span></a> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>路線を選択<span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/select&gt;</span></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">&lt;br</span></a> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span><span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;">&lt;br</span></a> /<span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/select.html"><span style="color: #000000; font-weight: bold;">&lt;select</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"station"</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/option.html"><span style="color: #000000; font-weight: bold;">&lt;option</span></a> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">""</span><span style="color: #000000; font-weight: bold;">&gt;</span></a></span>駅を選択<span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #ddbb00;">&amp;nbsp;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/option&gt;</span></span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/select&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><a href="http://ueblog.natural-wave.com/sample/heartrails.html" target="_blank">サンプルはこちら</a></p>
<p>これは地図系のサイトでかなり使えそうですね。</p>
]]></content:encoded>
			<wfw:commentRss>http://ueblog.natural-wave.com/2007/12/09/heartrails-express-api/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ueblog.natural-wave.com/2007/12/09/heartrails-express-api/" />
	</item>
		<item>
		<title>Lightweight Language Spiritに行ってきた</title>
		<link>http://ueblog.natural-wave.com/2007/08/04/lightweight-language-spirit/</link>
		<comments>http://ueblog.natural-wave.com/2007/08/04/lightweight-language-spirit/#comments</comments>
		<pubDate>Sat, 04 Aug 2007 14:58:11 +0000</pubDate>
		<dc:creator>ueblog</dc:creator>
				<category><![CDATA[Ajax]]></category>
		<category><![CDATA[Programing]]></category>

		<guid isPermaLink="false">http://ueblog.natural-wave.com/2007/08/04/lightweight-language-spirit/</guid>
		<description><![CDATA[猛暑の東京。そんな中Lightweight Language Spirit（LLSpirit）というイベントに行ってきた。別にLLという分野分けはどうでもいいかなと思っていて、そこまで期待してなかったのが正直あったが、中身は非常に濃いイベントだった。 Language UpdateでのRubyのペアプレゼンの展開に]]></description>
			<content:encoded><![CDATA[<p>猛暑の東京。そんな中<a href="http://ll.jus.or.jp/2007/" target="_blank">Lightweight Language Spirit</a>（LLSpirit）というイベントに行ってきた。別にLLという分野分けはどうでもいいかなと思っていて、そこまで期待してなかったのが正直あったが、中身は非常に濃いイベントだった。</p>
<p>Language UpdateでのRubyのペアプレゼンの展開には「やられた」し、自分の不勉強で知らない言語がたくさん（Lua、xtalなど）あるんだなと思ったり、みなさんないものは自分で作ってしまうのかと。普段利用ばかりしている自分のある意味、戒めとなるような内容でした。<br />
特に日本語プログラムのなでしことか、プログラム言語の敷居をぐっと下げてくれそうなそんな期待を持った。<br />
VM魂ではやっぱりJRubyがいまのところ一歩リードかな。というかRubyの勢いはこのイベントでもすごく感じた。</p>
<p>あとプレゼンソフトの部分でもみなさんおもしろい内容で、ほんとうにプレゼンがうまくて飽きさせない。<br />
Javaの3Dもすごかったし、Gaucheのプレゼンもおもしろかった。最後のチャットでプレゼンも前代未聞だったけど楽しかったな～</p>
<p>詳細はおそらくWebで動画なり出ると思うのでそこでぜひ確認を。</p>
]]></content:encoded>
			<wfw:commentRss>http://ueblog.natural-wave.com/2007/08/04/lightweight-language-spirit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://ueblog.natural-wave.com/2007/08/04/lightweight-language-spirit/" />
	</item>
	</channel>
</rss>

