<?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/"
	>

<channel>
	<title>あらびき林檎。 &#187; JavaScrpit</title>
	<atom:link href="http://splitchin.com/tech/category/javascrpit/feed/" rel="self" type="application/rss+xml" />
	<link>http://splitchin.com/tech</link>
	<description>Macや, iPhoneでの,Webデザイン,アプリ開発などを綴ってます。</description>
	<lastBuildDate>Sun, 06 May 2012 01:09:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OSX Lionに、node.jsを入れる。</title>
		<link>http://splitchin.com/tech/2012/02/02/osx-lion%e3%81%ab%e3%80%81node-js%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2012/02/02/osx-lion%e3%81%ab%e3%80%81node-js%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 10:31:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScrpit]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1769</guid>
		<description><![CDATA[				実践JS サーバサイド JavaScript 入門
				環境
				Mac OSX Lion 10.7.2
				node.js 0.6.4
				※バージョンによって、方法が異なるようなので注意してく [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4774146293/ref=as_li_qf_sp_asin_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=1211&#038;creativeASIN=4774146293">実践JS サーバサイド JavaScript 入門</a><img src="http://www.assoc-amazon.jp/e/ir?t=i7llcom-22&#038;l=as2&#038;o=9&#038;a=4774146293" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<h3>環境</h3>
				<p>Mac OSX Lion 10.7.2<br />
				node.js 0.6.4</p>
				<p>※バージョンによって、方法が異なるようなので注意してください。</p>
				<p>*nodejs.org/dist*</p>
				<p>http://nodejs.org/dist/</p>
				<h3>手順</h3>
				<h4>wgetで、node-latest.tar.gz(最新版)をダウンロード</p>
				<pre class="brush: plain;">
sudo wget http://nodejs.org/dist/node-latest.tar.gz
</pre>
				<h4>tarファイルを展開</h4>
				<pre class="brush: plain;">
$ sudo tar zxvf node-latest.tar.gz
</pre>
				<h4>展開ディレクトリに移動</h4>
				<pre class="brush: plain;">
$ cd node-v0.6.7
</pre>
				<pre class="brush: plain;">
$ sudo ./configure
$ sudo make
$ sudo make install
</pre>
				<p>これで、node.jsのインストールは完了です！</p>
				<h4>確認</h4>
				<pre class="brush: plain;">
$ node -v
$ &gt; 0.6.7
</pre>
				<p>nodeのバージョンが確認できれば、インストールに成功しています。</p>
				<h4>Hello, World!</h4>
				<p>適当なディレクトリに、以下のコードを書きます。</p>
				<p>hellonodejs.js</p>
				<pre class="brush: plain;">
var sys = require('sys');
var http = require('http');

var server = http.createServer (
        function (request, response) {
                response.writeHead(200, {'Content-type': 'text/plain'});
                response.write('Hello World!\n');
                response.end();
        }
).listen(8124);

sys.log('Server running at http://127.0.0.1:8124/');
</pre>
				<p>以下のコマンドを入力し、nodeを起動します。</p>
				<pre class="brush: plain;">
node hellonodejs.js
</pre>
				<p>ブラウザから、「http://127.0.0.1:8124/」にアクセスすると、<br />
				<img src="http://splitchin.com/tech/wp-content/uploads/2012/02/nodehello.png" alt="hellonodejs" title="nodehello" width="425" height="184" class="alignnone size-full wp-image-1780" /></p>
				<p>「Hello, World!」が表示されました。</p>
				<p><!-- Amazon area --></p>
				<div class="ad-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=1449398588&#038;ref=qf_sp_asin_til&#038;fc1=333333&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=333333&#038;bc1=FFFFFF&#038;bg1=FFFFFF&#038;npa=1&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2012/02/02/osx-lion%e3%81%ab%e3%80%81node-js%e3%82%92%e5%85%a5%e3%82%8c%e3%82%8b%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eval()使用しない。- JavaScriptパターン</title>
		<link>http://splitchin.com/tech/2011/05/29/eval%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%aa%e3%81%84%e3%80%82-javascript%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3/</link>
		<comments>http://splitchin.com/tech/2011/05/29/eval%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%aa%e3%81%84%e3%80%82-javascript%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3/#comments</comments>
		<pubDate>Sat, 28 May 2011 16:31:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[eval]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1741</guid>
		<description><![CDATA[				Head First JavaScript ―頭とからだで覚えるJavaScriptの基本
				1. evalとは? 
				eval: 文字列を式として評価する関数、または複数の文をプログラム中のあるコン [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4873113733/ref=as_li_ss_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4873113733">Head First JavaScript ―頭とからだで覚えるJavaScriptの基本</a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4873113733" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<h3>1. evalとは? </h3>
				<p><a href="http://ja.wikipedia.org/wiki/Eval#JavaScript.2C_ActionScript" target="new">eval</a>: 文字列を式として評価する関数、または複数の文をプログラム中のあるコンテキストで実行するサブルーチン</p>
				<p><a href="http://www.amazon.co.jp/gp/product/4873114888/ref=as_li_ss_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4873114888">JavaScriptパターン</a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4873114888" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
				のevalを使わない手法を学習中です。</p>
				<h3>2. JavaScriptパターン</h3>
				<p>静的プロパティにアクセスするパターン</p>
				<pre class="brush: jscript;">
// Anti Patern
var property = &quot;test&quot;;
alert(eval(&quot;obj.&quot; + property));

// Good Patern
var property = &quot;test&quot;;
alert(obj[property]);
</pre>
				<h3>3. evalの危険性</h3>
				<p>eval()のセキュリティ問題。<br />
				不正な、コードが実行される危険。<br />
				Bad) AjaxリクエストからJSONレスポンスをevalで処理<br />
				Good) ブラウザの組み込みメソッドを使用して、JSONのレスポンスを構文解析</p>
				<ul>
				<li><a href="http://www.openspc2.org/reibun/javascript2/JSON/parse/0001/index.html" target="new">JSON.parse</a> (新JavaScript例文辞典)</li>
				<li><a href="http://api.jquery.com/jQuery.parseJSON/" target="new">JQuery.parseJSON</a>・・・JSON.parseがサポートされていないブラウザを使用する場合</li>
				</ul>
				<h3>setInterval(), setTimeOut(), Function()コンストラクタ</h3>
				<p>文字列を、setInterval(), setTimeOut(), Function()コンストラクタに渡すのは、eval()にほぼ等しいので危険。</p>
				<pre class="brush: plain;">
// Anti Patern
setTimeOut(&quot;myFunc()&quot;, 1000);
setTimeOut(&quot;myFunc(1, 2, 3)&quot;, 1000);

// Good Patren
setTimeOut(myFunc, 1000);
setTimeOut(function() {
     myFunc(1, 2, 3);
}, 1000);
</pre>
				<p>どうしてもeval()を使用する必要がある時、new Functionコンストラクタを検討。<br />
				その関数のローカルなスコープで実行されるため、自動的にグローバルになることがない。<br />
				<!-- Amazon area --></p>
				<div class="ad-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=4873114888" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2011/05/29/eval%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%aa%e3%81%84%e3%80%82-javascript%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScriptパターン</title>
		<link>http://splitchin.com/tech/2011/05/23/javascript%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3/</link>
		<comments>http://splitchin.com/tech/2011/05/23/javascript%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3/#comments</comments>
		<pubDate>Sun, 22 May 2011 17:42:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1722</guid>
		<description><![CDATA[				JavaScript本格入門　~モダンスタイルによる基礎からAjax・ｊQueryまで
				最近、JSLintなど、
				ストリクトなJavaScriptコードが求められてきたので、
				JavaSc [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4774144665/ref=as_li_ss_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4774144665">JavaScript本格入門　~モダンスタイルによる基礎からAjax・ｊQueryまで</a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4774144665" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p>最近、<a href="http://www.jslint.com/" target="new">JSLint</a>など、<br />
				ストリクトなJavaScriptコードが求められてきたので、<br />
				JavaScriptのデザインパターンを２冊ほど。</p>
				<h3>JavaScriptパターン</h3>
				<p><a href="http://www.amazon.co.jp/gp/product/4873114888/ref=as_li_ss_il?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4873114888"><img border="0" src="http://ws.assoc-amazon.jp/widgets/q?_encoding=UTF8&#038;Format=_SL160_&#038;ASIN=4873114888&#038;MarketPlace=JP&#038;ID=AsinImage&#038;WS=1&#038;tag=i7llcom-22&#038;ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4873114888" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p><a href="http://www.amazon.co.jp/gp/product/4873114888/ref=as_li_ss_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4873114888">JavaScriptパターン ―優れたアプリケーションのための作法</a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4873114888" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
				Stoyan Stefanov：著　豊福　剛：訳</p>
				<h4>目次</h4>
				<p>1. はじめに<br />
				2. 必須パターン<br />
				3. リテラルとコンストラクタ<br />
				4. 関数<br />
				5. オブジェクト作成のパターン<br />
				6. コード再利用パターン<br />
				7. デザインパターン<br />
				8. DOMとブラウザのパターン</p>
				<p>他の言語とは違う、JavaScript独特の癖が理解できる書籍でした。</p>
				<h3>JavaScript The Good Parts</h3>
				<p><a href="http://www.amazon.co.jp/gp/product/4873113911/ref=as_li_ss_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4873113911">JavaScript: The Good Parts </a>のDouglas Crockford氏の動画<img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4873113911" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
				さらに極めたい、JSLintのGood Partsオプションをクリアしたい時。</p>
				<p><iframe width="400" height="320" src="http://www.youtube.com/embed/hQVTIJBZook" frameborder="0" allowfullscreen></iframe><br />
				<a href="http://www.amazon.co.jp/gp/product/4873113911/ref=as_li_ss_il?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4873113911"><img border="0" src="http://ws.assoc-amazon.jp/widgets/q?_encoding=UTF8&#038;Format=_SL110_&#038;ASIN=4873113911&#038;MarketPlace=JP&#038;ID=AsinImage&#038;WS=1&#038;tag=i7llcom-22&#038;ServiceVersion=20070822" ></a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4873113911" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p><a href="http://www.amazon.co.jp/gp/product/4873113911/ref=as_li_ss_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4873113911">JavaScript: The Good Parts ―「良いパーツ」によるベストプラクティス</a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4873113911" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<h4>目次</h4>
				<p>1章 良いパーツ<br />
				2章 文法<br />
				3章 オブジェクト<br />
				4章 関数<br />
				5章 継承<br />
				6章 配列<br />
				7章 正規表現<br />
				8章 メソッド<br />
				9章 スタイル<br />
				10章 美しい機能たち<br />
				付録A ひどいパーツ<br />
				付録B 悪いパーツ<br />
				付録C JSLint<br />
				付録D 鉄道ダイアグラム<br />
				付録E JSON<br />
				索引</p>
				<p><!-- amazon area --></p>
				<div class="ad-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=4873113296" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /amazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2011/05/23/javascript%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone タッチイベント</title>
		<link>http://splitchin.com/tech/2011/04/11/iphone-%e3%82%bf%e3%83%83%e3%83%81%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88/</link>
		<comments>http://splitchin.com/tech/2011/04/11/iphone-%e3%82%bf%e3%83%83%e3%83%81%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88/#comments</comments>
		<pubDate>Sun, 10 Apr 2011 15:24:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1687</guid>
		<description><![CDATA[				スマートフォンのためのHTML5アプリケーション開発ガイド―iPhone/iPad/Android対応
				
				サンプルURL
				Apple資料
				Safari Web Content Gu [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4883377288/ref=as_li_ss_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4883377288">スマートフォンのためのHTML5アプリケーション開発ガイド―iPhone/iPad/Android対応</a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4883377288" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2011/04/touchevent.png" alt="touchevent画像" title="touchevent" width="300" height="265" class="alignnone size-full wp-image-1689" /></p>
				<p><a href="http://splitchin.com/sample/javascript/iphone-touchevent/">サンプルURL</a></p>
				<h3>Apple資料</h3>
				<p><a href="http://developer.apple.com/library/safari/#documentation/appleapplications/reference/safariwebcontent/HandlingEvents/HandlingEvents.html">Safari Web Content Guide &#8211; Handling Events</a></p>
				<ul>
				<li>onTouchStart<//li>
				<li>onTouchMove<//li>
				<li>onTouchEnd<//li>
				<li>onTouchCancel<//li>
				</ul>
				<p>※onClickのようなイベントの使い方。iPhoneでは、onClickよりレスポンスが良いらしい。</p>
				<h3>タッチ数の取得</h3>
				<ul>
				<li>event.touches.length</li>
				</ul>
				<h3>タッチ座標（x, y）の取得</h3>
				<ul>
				<li>event.touches[i].pageX</li>
				<li>event.touches[i].pageY</li>
				</ul>
				<p>※iで、各タッチの座標を格納。</p>
				<p><!-- amazon-area --></p>
				<div id="ad-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=4899772750" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /amazon-area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2011/04/11/iphone-%e3%82%bf%e3%83%83%e3%83%81%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flashを1回クリックしないと操作できなくなる問題</title>
		<link>http://splitchin.com/tech/2011/04/05/flash%e3%82%921%e5%9b%9e%e3%82%af%e3%83%aa%e3%83%83%e3%82%af%e3%81%97%e3%81%aa%e3%81%84%e3%81%a8%e6%93%8d%e4%bd%9c%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%8f%e3%81%aa%e3%82%8b%e5%95%8f%e9%a1%8c/</link>
		<comments>http://splitchin.com/tech/2011/04/05/flash%e3%82%921%e5%9b%9e%e3%82%af%e3%83%aa%e3%83%83%e3%82%af%e3%81%97%e3%81%aa%e3%81%84%e3%81%a8%e6%93%8d%e4%bd%9c%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%8f%e3%81%aa%e3%82%8b%e5%95%8f%e9%a1%8c/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 15:46:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash/ActionScript]]></category>
		<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1673</guid>
		<description><![CDATA[				Flash　プロの現場の仕事術 CS5/CS4/CS3対応
				2006.04.12のIEの更新プログラムをインストールすると、
				Flashを1回クリックしないと操作できなくなる問題について、Adob [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4839936757/ref=as_li_ss_tl?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4839936757">Flash　プロの現場の仕事術 CS5/CS4/CS3対応</a><img src="http://www.assoc-amazon.jp/e/ir?t=&#038;l=as2&#038;o=9&#038;a=4839936757" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p>2006.04.12のIEの更新プログラムをインストールすると、<br />
				Flashを1回クリックしないと操作できなくなる問題について、Adobeの解決策。</p>
				<h3>1. Adobe資料</h3>
				<dl>
				<dt>アクティブコンテンツデベロッパーセンター &#8211; ADOBE DEVELOPER CONNECTION</dt>
				<dd><a href="http://www.adobe.com/jp/devnet/activecontent/" target="new">http://www.adobe.com/jp/devnet/activecontent</a></dd>
				</dl>
				<dl>
				<dt> ブラウザの更新に備えたアクティブコンテンツ使用Webサイトの準備</dt>
				<dd><a href="http://www.adobe.com/jp/devnet/activecontent/articles/devletter.html/" target="new">http://www.adobe.com/jp/devnet/activecontent/articles/devletter.html</a></dd>
				</dl>
				<h3>2.Adobe Active Contents Developer Centerより引用</h3>
				<blockquote><p>HTMLファイル内部に記述された&lt;object&gt;、&lt;embed&gt;、または&lt;apple&gt;tタグを使用してコーディングされたアクティブコンテンツを表示する前に、ユーザにクリックを促すメッセージが表示されます。ただし、複雑なFlash検出スクリプトを使用したサイトなど、外部スクリプトファイル（JavaScriptなど）によって生成されたタグを使用するHTMLページは、変化なく正常な動作を続けます。</p></blockquote>
				<ul>
				<li>外部JavaScriptソリューション1：埋め込みコンテンツが1つまたは数個の場合</li>
				<li>外部JavaScriptソリューション2：複数の埋め込みコンテンツがある場合</li>
				</ul>
				<h4>AC_RunActiveContent.js：</h4>
				<p><a href="http://download.macromedia.com/pub/developer/activecontent_samples.zip" target="new">AC_RunActiveContent.jsのダウンロード</a><br />
				外部JavaScriptソリューション2：複数の埋め込みコンテンツがある場合で、FlashおよびShockwaveコンテンツの回避策に使用するファイル。</p>
				<h4>利用方法</h4>
				<ul>
				<li>1. AC_FL_RunContent.jsをアップして、読み込む。</li>
				<li>2. AC_FL_RunContent()にパラメーターを記述して呼び出す。</li>
				<li>3. noscript部分に、JavaScript OFF時の代替手段を記述する。代替Gifでも可能。</li>
				</ul>
				<pre class="brush: plain;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;script src=&quot;Scripts/AC_RunActiveContent.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','100','height','22','src','button1','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','button1' ); //end AC code
&lt;/script&gt;&lt;noscript&gt;&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0&quot; width=&quot;100&quot; height=&quot;22&quot;&gt;
  &lt;param name=&quot;movie&quot; value=&quot;button1.swf&quot; /&gt;
  &lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;
  &lt;embed src=&quot;button1.swf&quot; quality=&quot;high&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;100&quot; height=&quot;22&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;&lt;/noscript&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
				<p><!-- Amazon area --></p>
				<div class="ad-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=4839931658" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2011/04/05/flash%e3%82%921%e5%9b%9e%e3%82%af%e3%83%aa%e3%83%83%e3%82%af%e3%81%97%e3%81%aa%e3%81%84%e3%81%a8%e6%93%8d%e4%bd%9c%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%8f%e3%81%aa%e3%82%8b%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhoneGap HTML/CSS/JavaScript　Androidアプリで試してみる。</title>
		<link>http://splitchin.com/tech/2010/11/23/phonegap-htmlcssjavascript%e3%80%80android%e3%82%a2%e3%83%97%e3%83%aa%e3%81%a7%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/11/23/phonegap-htmlcssjavascript%e3%80%80android%e3%82%a2%e3%83%97%e3%83%aa%e3%81%a7%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 14:53:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Androidアプリ]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[PhoneGap]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1497</guid>
		<description><![CDATA[				入門 Android 2 プログラミング (Programmer’s SELECTION)
				
				前回、iPhoneアプリで試してみた、HTML/CSS/JavaScriptで、iPhoneアプリ／A [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4798120324?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4798120324">入門 Android 2 プログラミング (Programmer’s SELECTION)</a><img src="http://www.assoc-amazon.jp/e/ir?t=i7llcom-22&#038;l=as2&#038;o=9&#038;a=4798120324" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p><object width="400" height="250"><param name="movie" value="http://www.youtube.com/v/p5tQdmHkrTg?fs=1&amp;hl=ja_JP"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/p5tQdmHkrTg?fs=1&amp;hl=ja_JP" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="250"></embed></object></p>
				<p>前回、<a href="http://splitchin.com/tech/2010/11/06/phonegap-htmlcssjavascriptで、iphoneやandroidアプリを作るフレームワーク/" target="new">iPhoneアプリで試してみた</a>、HTML/CSS/JavaScriptで、iPhoneアプリ／Androidアプリを作るフレームワーク、「PhoneGap」を、Androidアプリでも試してみました。</p>
				<h3>1. PhoneGapをダウンロードする。</h3>
				<p><a href="http://www.phonegap.com/" target="new">PhoneGap公式サイト:(http://www.phonegap.com/)</a>から、PhoneGapをダウンロードします。※この段階では、Ver0.92でした。</p>
				<p><img class="alignnone size-full wp-image-1501" title="phonegap-andzip" src="http://splitchin.com/tech/wp-content/uploads/2010/11/phonegap-andzip.jpg" alt="PhoneGap-Android-Zip" width="320" height="128" /></p>
				<p>Androidフォルダをそのまま、Androidのワークスペースにコピーします。</p>
				<h3>2.EclipseでAndroidプロジェクトを新規作成します。</h3>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/newandroid.jpg" alt="Android New PhoneGap Project" title="newandroid" width="320" height="527" class="alignnone size-full wp-image-1502" /></p>
				<p>※Mac OSX10.6.4, Eclipse Helios (3.6.1), Android SDK2.2で試したみた履歴です。 </p>
				<p>「Create project from existing source」を選択し、先ほど展開したPhonegapのAndroidのsampleを指定します。<br />
				デフォルトだと、Target Buildが、Android1.1ですが、そのまま選択するとビルドエラーが起きるので、Android 2.2を選択します。（多分1.5以上なら問題ないのではないかと思います。）</p>
				<h3>3. HTMLコーディングします。</h3>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/www.jpg" alt="phonegap-android-www" title="www" width="400" height="359" class="alignnone size-full wp-image-1504" /></p>
				<p>このようなAndroidプロジェクトが作成されます。<br />
				&#8220;www&#8221;フォルダに、&#8221;index.html&#8221;があるので、こちらを編集すると、ハイブリットアプリケーションができます。</p>
				<h3>4. エミュレーターで動かしてみる。</h3>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/androidemu.jpg" alt="Androidエミュレーター" title="androidemu" width="400" height="370" class="alignnone size-full wp-image-1505" /></p>
				<p>今回は、サンプルのままビルドしてみました。<br />
				色々なネイティブ機能が、JavaScriptで動作するのが確認できました！</p>
				<p><strong>参考資料</strong></p>
				<ul>
				<li><a href="http://wiki.phonegap.com/w/page/16494774/Getting-started-with-Android-PhoneGap-in-Eclipse" target="new">phonegap / Getting started with Android PhoneGap in Eclipse</a></li>
				<li><a href="http://digitaldandelion.net/blog/getting_started_with_phonegap/" target="new">Getting Started with PhoneGap</a></li>
				</ul>
				<p><!-- Amazon area --></p>
				<div class="ad-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4883377075" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /Amazon Area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/11/23/phonegap-htmlcssjavascript%e3%80%80android%e3%82%a2%e3%83%97%e3%83%aa%e3%81%a7%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery Mobile を使ってみた。</title>
		<link>http://splitchin.com/tech/2010/11/20/jquery-mobile-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/11/20/jquery-mobile-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 14:59:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[その他]]></category>
		<category><![CDATA[jQuery Mobile]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1476</guid>
		<description><![CDATA[				Web制作の現場で使う jQueryデザイン入門
				
				 jQuery Mobile
				http://jquerymobile.com/
				スマートフォンやタブレットデバイス向けに開発され [...]]]></description>
			<content:encoded><![CDATA[				<p><a href="http://www.amazon.co.jp/gp/product/4048684116?ie=UTF8&#038;tag=i7llcom-22&#038;linkCode=as2&#038;camp=247&#038;creative=7399&#038;creativeASIN=4048684116">Web制作の現場で使う jQueryデザイン入門</a><img src="http://www.assoc-amazon.jp/e/ir?t=i7llcom-22&#038;l=as2&#038;o=9&#038;a=4048684116" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/jQuery-moblie.png" alt="jQuery mobile" title="jQuery-moblie" width="400" height="296" class="alignleft size-full wp-image-1478" /></p>
				<p><strong> jQuery Mobile</strong><br />
				<a href="http://jquerymobile.com/" target="new">http://jquerymobile.com/</a></p>
				<p>スマートフォンやタブレットデバイス向けに開発されているJavaScriptフレームワーク。<br />
				iOS、Androind、Blackberry Torch v.6、Palm WebOS Pre/Pixiなどに対応。</p>
				<p><a href="http://journal.mycom.co.jp/articles/2010/11/19/johnresig/index.html" target="new">デバイスに最適化されたWebアプリを届けたい &#8211; jQuery開発者John Resig氏 &#8211; マイコムジャーナルより</a></p>
				<p>jQuery Mobile Alpha 2が公開。<br />
				大幅なバグ修正、機能拡張、性能改善が実施されたバージョン<br />
				※動作にはjQuery 1.4.4が必要。</p>
				<ul>
				<li>jQuery Mobile全体の品質を向上</li>
				<li>多くのサブシステムを書き換え</li>
				<li>クロスブラウザ互換性品質の向上</li>
				</ul>
				<h3>2. デモ</h3>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/jQueryDemo.png" alt="JQueryMobileDemo" title="jQueryDemo" width="200" height="294" class="alignleft size-full wp-image-1482" /></p>
				<p>こちらから、実際のデモを閲覧できます。<br />
				<a href="http://jquerymobile.com/demos/1.0a2/" target="new">http://jquerymobile.com/demos/1.0a2/</a></p>
				<h3>3. 対応環境</h3>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/supportgrade.png" alt="" title="supportgrade" width="200" height="144" class="alignleft size-full wp-image-1486" /></p>
				<p>各プラットフォームと、ブラウザ対応状況は、こちらから。</p>
				<p><strong>Mobile Graded Browser Support</strong><br />
				<a href="http://jquerymobile.com/gbs/" target="new">http://jquerymobile.com/gbs/</a></p>
				<p>特に、ネイティブと、<a href="http://splitchin.com/tech/tag/phonegap/">PhoneGap</a>との相性がいいですね。</p>
				<h3>4. ダウンロード </h3>
				<p>jQuery Mobileを使うには、下記のホストされているファイルを組み込むか、</p>
				<pre class="brush: plain;">
&lt;link rel=&quot;stylesheet&quot; href=&quot;http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.css&quot; /&gt;
&lt;script src=&quot;http://code.jquery.com/jquery-1.4.4.min.js&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;http://code.jquery.com/mobile/1.0a2/jquery.mobile-1.0a2.min.js&quot;&gt;&lt;/script&gt;
</pre>
				<p>もしくは、こちらから<a href="http://jquerymobile.com/download" target="new>DL</a>します。<br />
				<a href="http://jquerymobile.com/download/" target="new">http://jquerymobile.com/download/</a></p>
				<p>※jQuery1.4.4が必要なので、なければこちらからも<a href="http://docs.jquery.com/Downloading_jQuery" target="new">DL</a>します。<br />
				<a href="http://docs.jquery.com/Downloading_jQuery" target="new">http://docs.jquery.com/Downloading_jQuery</a></p>
				<p>さて、これを組み込んで、<br />
				画面遷移、ボタン、スライダーを試してみました。<br />
				<img src="http://splitchin.com/tech/wp-content/uploads/2010/11/jqm-test.png" alt="jquery-splitchin" title="jqm-test" width="200" height="282" class="alignleft size-full wp-image-1490" /></p>
				<p><strong>サンプルURL</strong><br />
				<a href="http://splitchin.com/sample/iPhone/jquery-mobilea2/" target="new">http://splitchin.com/sample/iPhone/jquery-mobilea2/</a></p>
				<p>※SafariかChromeで閲覧してください。</p>
				<p>個人的には、senchaフレームワークより、扱いやすかったです。</p>
				<p><!-- amazon area --></p>
				<div class="ad-area".<br />
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4048684116" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
				</div>
				<p><!-- /azmazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/11/20/jquery-mobile-%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Facebook Platform  &#8211; HelloWorld!を試してみる。</title>
		<link>http://splitchin.com/tech/2010/11/08/facebook-sdk-helloworld%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82/</link>
		<comments>http://splitchin.com/tech/2010/11/08/facebook-sdk-helloworld%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82/#comments</comments>
		<pubDate>Sun, 07 Nov 2010 15:17:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[Facebook Developers]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1374</guid>
		<description><![CDATA[				
				1. Facebook Developers Doucumentationを読む。
				とりあえず、何が出来るのか、ということで
				Facebook DevelopersのDocumentat [...]]]></description>
			<content:encoded><![CDATA[				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/facebook-logo.png" alt="Facebook-developers" title="facebook-logo" width="373" height="76" class="alignleft size-full wp-image-1399" /></p>
				<h3>1. Facebook Developers Doucumentationを読む。</h3>
				<p>とりあえず、何が出来るのか、ということで<br />
				Facebook Developersの<a href="http://developers.facebook.com/docs/" target="new">Documentation</a>を読むと、下記のような構成で</p>
				<h4>API References</h4>
				<dl>
				<dt>■Core API</dt>
				<dd>Graph API</dd>
				<dd>Social plugins</dd>
				<dt>■Facebook SDKs</dt>
				<dd>JavaScript SDK</dd>
				<dd>PHP SDK</dd>
				<dd>Python SDK</dd>
				<dd>iOS SDK for iPhone and iPad</dd>
				<dd>Android SDK</dd>
				<dt>■Advanced APIs</dt>
				<dd>Graph Realtime API</dd>
				<dd>Facebook Query Language (FQL)</dd>
				<dd>Facebook Markup Language (FBML)</dd>
				<dd>Old REST API</dd>
				<dd>Old JavaScript Client Library</dd>
				<dd>Internationalization</dd>
				<dd>Integrating with Facebook Chat
				<dd>
				<dd>Facebook Ads API</dd>
				</dl>
				<p>自サイトへの、導入資料である、<a href="http://developers.facebook.com/docs/guides/web" target="new">Facebook for Websites</a>を読むと、Socail Plugins <a href="http://developers.facebook.com/plugins" target="new">http://developers.facebook.com/plugins</a>がはじめに紹介されており、</p>
				<blockquote><p>Social plugins let you see what your friends have liked, commented on or shared on sites across the web. All social plugins are extensions of Facebook and are specifically designed so none of your data is shared with the sites on which they appear.
				</p></blockquote>
				<p>一番、基本なのは、このSocial Pluginsで、<br />
				Likeボタンを追加したり、Activity一覧を、自分のサイトに、<br />
				HTMLで組み込む事ができるAPIとのことです。</p>
				<p>以前、<a href="http://splitchin.com/tech/2010/05/10/facebook-likeボタンを試してみる。/" >Likeボタン設置</a>したり、<br />
				大体、これで、どんなものなのか掴むことができたので、</p>
				<p>今度は、Graph APIをJavaScript経由で利用出来るという、<br />
				Javascript SDKを試して行きたいと思います。</p>
				<p>その前の基礎として、HTMLで、”Hello, World!&#8221; を試します。</p>
				<h3>2. Facebook API &#8211; Hello,World!を試してみる</h3>
				<p>JavaScript SDK<br />
				<a href="http://developers.facebook.com/docs/reference/javascript/" target="new">http://developers.facebook.com/docs/reference/javascript/</a><br />
				こちらを読みながら、進めてみました。</p>
				<h4>2-1, Facebook Developers &#8211; アプリケーションIDを取得</h4>
				<blockquote><p>The JavaScript SDK enables you to access all of the features of the Graph API via JavaScript, and it provides a rich set of client-side functionality for authentication and sharing. The JavaScript SDK is also necessary to use the XFBML versions of the Social Plugins. Many functions in the JavaScript SDK require an application ID. You can get an app ID by registering your application.</p></blockquote>
				<p>大体の機能を使うには、IDの登録が必要だよ、とあるので、<br />
				まずは、Facebook DevelopersのアプリケーションIDを取得します。</p>
				<p>日本語のアプリケーションID取得方法説明は、こちらの方々のサイトを参考に、「<a href="http://www.adobe.com/jp/devnet/facebook/articles/build_your_first_facebook_app_03.html" target="new">FACEBOOK開発者アプリケーションの追加とアプリケーションの登録</a>」、<a href="http://d.hatena.ne.jp/ramyana/20101012/1286897340" target="new">facebookアプリの作り方・PHP編</a></p>
				<h3>2-2. Canvas URLで、&#8221;Hello, World!&#8221;を表示するHTMLを組み込む。</h3>
				<p>■Facebook Developers &#8211; MyApplication<br />
				<a href="http://www.facebook.com/developers/" target="new">http://www.facebook.com/developers/</a></p>
				<p>自分は、MyApplicationに辿り着けなかったので、<br />
				直接、上記URLを、ブックマークしています。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/facebookMyapp.png" alt="Facebook - MyApplication" title="facebookMyapp" width="320" height="220" class="alignleft size-full wp-image-1391" /><br />
				MyAppの、Facebook Integrationを設定します。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/facebook-setting.png" alt="Facebook-Setting" title="facebook-setting" width="420" height="284" class="alignleft size-full wp-image-1392" /></p>
				<ul>
				<li>CanvasPage URL: 組み込むHTMLのURLを指定します。</li>
				<li>Canvas Type：&#8221;iframe&#8221;にすると、まるっと上記URLを組み込みます。</li>
				<li>iFrameサイズ：&#8221;Auto-resize&#8221;を指定すると、自動でiframeのサイズ調整します。</li>
				</ul>
				<p>上記MyAppで指定した、CanvasPage URLに、なんでもいいのですが、</p>
				<pre class="brush: plain;">
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot;
	&quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;ja&quot;&gt;
&lt;head&gt;
&lt;title&gt;Splitchin  - Facebook SDK Hello, World!&lt;/title&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
&lt;meta name=&quot;description&quot; content=&quot;Splitchinは、Macでの、Webデザイン、iPhone、Tシャツ、などのクリエイティブ活動です。&quot;&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;Splitchin,Webデザイン,Tシャツ,iPhone,Mac&quot;&gt;
&lt;meta http-equiv=&quot;Content-Script-Type&quot; content=&quot;text/javascript&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Style-Type&quot; content=&quot;text/css&quot; /&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;wrap&quot;&gt;
&lt;!-- contents --&gt;
&lt;div id=&quot;contents&quot;&gt;
	&lt;p&gt;Facebook SDK - Hello, World!!&lt;/p&gt;
&lt;/div&gt;
&lt;!-- /contents --&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
				<p>こんな、「Hello,World！」を表示するHTMLをサンプルとして、アップします。</p>
				<p>その後、</p>
				<p>http://apps.facebook.com/****ご自分のAppベースURL***/</p>
				<p>にアクセスすると、</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/face-helloworld.png" alt="facebook-helloworld" title="face-helloworld" width="407" height="292" class="alignleft size-full wp-image-1395" /></p>
				<p>こんな感じで、「Hello,World!」が表示されました！</p>
				<h3>2-3. Facebook &#8211; JavaScript SDKをダウンロードする &#8211; (実装は次回)</h3>
				<p>■facebook / connect-js<br />
				<a href="https://github.com/facebook/connect-js" target="new">https://github.com/facebook/connect-js</a></p>
				<p>から、SDKをダウンロードします。</p>
				<p>次回は、こちらを使用して、認証系など、実装テストしていきます。</p>
				<p>こちらの、JS Test Consoleを使うと、<br />
				<a href="http://developers.facebook.com/tools/console/" target="new">http://developers.facebook.com/tools/console/</a></p>
				<p>書いた、JavaScript SDKのコードをデバッグできるので便利です。</p>
				<p><!-- amazon area --></p>
				<div class="amazon-area">
				<iframe src="http://rcm-jp.amazon.co.jp/e/cm?lt1=_blank&#038;bc1=FFFFFF&#038;IS2=1&#038;npa=1&#038;bg1=FFFFFF&#038;fc1=333333&#038;lc1=333333&#038;t=i7llcom-22&#038;o=9&#038;p=8&#038;l=as1&#038;m=amazon&#038;f=ifr&#038;md=1X69VDGQCMF7Z30FM082&#038;asins=4903853934" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
				</div>
				<p><!-- /amazon area --></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/11/08/facebook-sdk-helloworld%e3%82%92%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%82%8b%e3%80%82/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhoneGap &#8211; HTML/CSS/JavaScriptで、iPhoneやAndroidアプリを作るフレームワーク</title>
		<link>http://splitchin.com/tech/2010/11/06/phonegap-htmlcssjavascript%e3%81%a7%e3%80%81iphone%e3%82%84android%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e4%bd%9c%e3%82%8b%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af/</link>
		<comments>http://splitchin.com/tech/2010/11/06/phonegap-htmlcssjavascript%e3%81%a7%e3%80%81iphone%e3%82%84android%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e4%bd%9c%e3%82%8b%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 13:30:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[PhoneGap]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Webkit]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=1348</guid>
		<description><![CDATA[				
				■PhoneGapとは
				HTML/CSS/JavaScriptで、iPhoneやAndroidアプリを作るフレームワーク。
				1. PhoneGapをはじめる。
				今回は、iPhon [...]]]></description>
			<content:encoded><![CDATA[				<p><object width="420" height="261"><param name="movie" value="http://www.youtube.com/v/eabnlG6OtVI?fs=1&amp;hl=ja_JP"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/eabnlG6OtVI?fs=1&amp;hl=ja_JP" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="420" height="261"></embed></object></p>
				<p>■PhoneGapとは<br />
				HTML/CSS/JavaScriptで、iPhoneやAndroidアプリを作るフレームワーク。</p>
				<h3>1. PhoneGapをはじめる。</h3>
				<p>今回は、iPhoneアプリでのPhoneGapを試します。<br />
				<a href="http://splitchin.com/tech/2010/11/23/phonegap-htmlcssjavascript%E3%80%80androidアプリで試してみる">Android編はこちら</a>から。</p>
				<p><a href="http://www.phonegap.com/" taget="new">公式サイト</a>もしくは、<a href="https://github.com/phonegap" target="new">GitHub</a>から、PhoneGapフレームワークをダウンロードします。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/phonegap.png" alt="PhoneGap" title="phonegap" width="398" height="231" class="alignleft size-full wp-image-1360" /></p>
				<p>DLしてきたZipファイルを解凍し、iOSフォルダにある、<br />
				「PhoneGapLibInstaller.pkg」を開いて、PhoneGapフレームワークをインストールします。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/PhoneGap-temp.png" alt="PhoneGapTemplate" title="PhoneGap-temp" width="372" height="288" class="alignleft size-full wp-image-1365" /></p>
				<p>XCodeを起動して、新規プロジェクトを作成すると、<br />
				「PhoneGap」というテンプレートが追加されているので<br />
				それを、選択してプロジェクトを作成します。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/PhoneGap-index1.png" alt="PhoneGapIndex" title="PhoneGap-index" width="428" height="414" class="alignleft size-full wp-image-1366" /></p>
				<p>「www」というフォルダに、index.htmlファイルが追加されています。<br />
				このhtmlに、記述したり、PhoneGap APIをJSから使用することで<br />
				iPhoneアプリを作成していきます。</p>
				<h5>PhoneGap &#8211; API Reference <a href="http://docs.phonegap.com/" target="new">http://docs.phonegap.com/</a></h5>
				<ul>
				<li>Accelerometer</li>
				<li>Camera</li>
				<li>Contacts</li>
				<li>Device</li>
				<li>Events</li>
				<li>Geolocation</li>
				<li>Network</li>
				<li>Notification</li>
				</ul>
				<h3>2. PhoneGap APIの加速度センサーを使ってみる。</h3>
				<p><a href="http://docs.phonegap.com/phonegap_accelerometer_accelerometer.md.html#Accelerometer" target="new">Accelerometer</a>を参考に、accelerometer.getCurrentAccelerationを使った加速度センサーのAPIを使ってみます。</p>
				<p>前述のwwwフォルダの、index.htmlを記述します。</p>
				<pre class="brush: plain;">
&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/strict.dtd&quot;&gt;
&lt;html&gt;
  &lt;head&gt;
	&lt;!-- Change this if you want to allow scaling --&gt;
    &lt;meta name=&quot;viewport&quot; content=&quot;width=default-width; user-scalable=no&quot; /&gt;

    &lt;meta http-equiv=&quot;Content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;

    &lt;title&gt;PhoneGapTest&lt;/title&gt;

	&lt;!-- iPad/iPhone specific css below, add after your main css &gt;
	&lt;link rel=&quot;stylesheet&quot; media=&quot;only screen and (max-device-width: 1024px)&quot; href=&quot;ipad.css&quot; type=&quot;text/css&quot; /&gt;
	&lt;link rel=&quot;stylesheet&quot; media=&quot;only screen and (max-device-width: 480px)&quot; href=&quot;iphone.css&quot; type=&quot;text/css&quot; /&gt;
	--&gt;
	&lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot; src=&quot;phonegap.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;

	// If you want to prevent dragging, uncomment this section
	/*
	function preventBehavior(e)
	{
      e.preventDefault();
    };
	document.addEventListener(&quot;touchmove&quot;, preventBehavior, false);
	*/

	// Wait for PhoneGap to load
	function onBodyLoad() {
		document.addEventListener(&quot;deviceready&quot;,onDeviceReady,false);
	}

	/* When this function is called, PhoneGap has been initialized and is ready to roll */
    // PhoneGap is ready
	//
	function onDeviceReady() {
		navigator.accelerometer.getCurrentAcceleration(onSuccess, onError);
	}

	// onSuccess: Get a snapshot of the current acceleration
	//
	function onSuccess(acceleration) {
        alert('Acceleration X: ' + acceleration.x + '\n' +
              'Acceleration Y: ' + acceleration.y + '\n' +
              'Acceleration Z: ' + acceleration.z + '\n' +
              'Timestamp: '      + acceleration.timestamp + '\n');
	}

	// onError: Failed to get the acceleration
	//
	function onError() {
		alert('onError!');
	}

  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body onload=&quot;onBodyLoad()&quot;&gt;
  &lt;!-- PhoneGap Test Code --&gt;
  &lt;h1&gt;PhoneGap test.&lt;/h1&gt;
  &lt;p&gt;getCurrentAcceleration&lt;/p&gt;
  &lt;!-- /PhoneGap Test Code --&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
				<p>通常のiPhoneアプリと同じように、XCodeから、ビルドします。</p>
				<p><img src="http://splitchin.com/tech/wp-content/uploads/2010/11/phoneGapAPiAccelr.png" alt="phoneGapAPIAccelr" title="phoneGapAPiAccelr" width="433" height="428" class="alignleft size-full wp-image-1369" /></p>
				<p>JavaScriptで実装したアラートに加速度センサーが動きました。</p>
				<h3>3. PhoneGap ドキュメント関連</h3>
				<p>■PhoneGap<br />
				<a href="http://www.phonegap.com/" taget="new">http://www.phonegap.com/</a></p>
				<p>■PhoneGap Roadmap<br />
				<a href="http://wiki.phonegap.com/w/page/16494820/Roadmap" target="new">http://wiki.phonegap.com/w/page/16494820/Roadmap</a></p>
				<p>■GitHub<br />
				<a href="https://github.com/phonegap" target="new">https://github.com/phonegap</a><br />
				オフィシャルのプラグインやAPIの、レポジトリがあります。</p>
				<p>■DOCS API Reference<br />
				<a href="http://docs.phonegap.com/" target="new">http://docs.phonegap.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2010/11/06/phonegap-htmlcssjavascript%e3%81%a7%e3%80%81iphone%e3%82%84android%e3%82%a2%e3%83%97%e3%83%aa%e3%82%92%e4%bd%9c%e3%82%8b%e3%83%95%e3%83%ac%e3%83%bc%e3%83%a0%e3%83%af%e3%83%bc%e3%82%af/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FlashのHTMLの埋込み。　SWFObject v2.0</title>
		<link>http://splitchin.com/tech/2009/12/17/flash%e3%81%aehtml%e3%81%ae%e5%9f%8b%e8%be%bc%e3%81%bf%e3%80%82%e3%80%80swfobject-v2-0/</link>
		<comments>http://splitchin.com/tech/2009/12/17/flash%e3%81%aehtml%e3%81%ae%e5%9f%8b%e8%be%bc%e3%81%bf%e3%80%82%e3%80%80swfobject-v2-0/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 14:12:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash/ActionScript]]></category>
		<category><![CDATA[JavaScrpit]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://splitchin.com/tech/?p=37</guid>
		<description><![CDATA[				FlashのSWFファイルを&#60;object&#62;タグ, &#60;embed&#62;タグを使用せずに、
				JSライブラリで、手軽にHTMLに埋込める、SWFObjectを使ってみました。
				ダウ [...]]]></description>
			<content:encoded><![CDATA[				<p>FlashのSWFファイルを&lt;object&gt;タグ, &lt;embed&gt;タグを使用せずに、<br />
				JSライブラリで、手軽にHTMLに埋込める、SWFObjectを使ってみました。</p>
				<h3>ダウンロード＆資料</h3>
				<ul>
				<li>SWFObject v2.0<br />
				<a href="http://code.google.com/p/swfobject/">http://code.google.com/p/swfobject/ </a></li>
				<li>SWFObject v2.0 ドキュメント日本語訳<br />
				<span style="text-decoration: underline;"><a style="text-decoration: none;" href="http://mtl.recruit.co.jp/blog/2007/10/swfobject_v20.html">http://mtl.recruit.co.jp/blog/2007/10/swfobject_v20.html</a></span></li>
				<li>SWFObject 2 HTML and JavaScript ジェネレーター v1.2<br />
				<a href="http://www.tonpoo.com/docs/swfobject_generator/">http://www.tonpoo.com/docs/swfobject_generator/</a><a></a></li>
				<p><a> </a></ul>
				<h3>サンプルページ</h3>
				<ul>
				<li><a href="http://splitchin.com/sample/javascript/swfobject/index_dynamic.html">http://splitchin.com/sample/javascript/swfobject/index_dynamic.html</a></li>
				</ul>
				<h3>1. swfobject.jsを読み込む</h3>
				<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot; src=&quot;swfobject.js&quot;&gt;&lt;/script&gt;
</pre>
				<h3>2. swfobject.jsを読み込む</h3>
				<pre class="brush: jscript;">
&lt;script type=&quot;text/javascript&quot;&gt;
var flashvars = {
// ここに、swfに渡す引数
}
var params = {
wmode: &quot;transparent&quot;　//params指定
};
var attributes = {};
// swf(FLASH素材)ファイル名、
// 置き換えるオブジェクト名(swfを組み込むdivタグのid名)、
// 横の長さ、
// 縦の長さ,
swfobject.embedSWF(&quot;mp3moji.swf&quot;, &quot;mp3moji&quot;, &quot;180&quot;, &quot;15&quot;, &quot;9.0.0&quot;,&quot;&quot;, flashvars, params, attributes);
&lt;/script&gt;
</pre>
				<h3>3. Flash組み込み部分　＆　Flash代替コンテンツ</h3>
				<pre class="brush: xml;">
&lt;div id=&quot;mp3moji&quot;&gt;
&lt;!--  Flash代替コンテンツ --&gt;
&lt;a href=&quot;test.mp3&quot;&gt;voice01&lt;/a&gt;
&lt;!-- / Flash代替コンテンツ --&gt;
&lt;/div&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://splitchin.com/tech/2009/12/17/flash%e3%81%aehtml%e3%81%ae%e5%9f%8b%e8%be%bc%e3%81%bf%e3%80%82%e3%80%80swfobject-v2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

