<?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; Javascript</title>
	<atom:link href="http://www.chentianwen.net/wordpress/category/it/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chentianwen.net/wordpress</link>
	<description>Life has to be exciting.</description>
	<lastBuildDate>Wed, 01 Feb 2012 01:34:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Command-Line Javascript (CLI) On Mac OS-X</title>
		<link>http://www.chentianwen.net/wordpress/2012/02/01/command-line-javascript-cli-on-mac-os-x/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=command-line-javascript-cli-on-mac-os-x</link>
		<comments>http://www.chentianwen.net/wordpress/2012/02/01/command-line-javascript-cli-on-mac-os-x/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 01:34:10 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[CLI]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=590</guid>
		<description><![CDATA[<p>from http://www.freshblurbs.com/command-line-javascript-cli-mac-os-x</p> <p>With the increasing popularity of server-side Javascript, you may want to have Javascript everywhere. You can use Javascript outside of a browser, on any platform. There are many choices: you can install Mozilla SpiderMonkey, Google V8 or Mozilla Rhino. If you are like me and use Mac OS-X as your development machine, however, you [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2012/02/01/command-line-javascript-cli-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Performance Rules</title>
		<link>http://www.chentianwen.net/wordpress/2009/11/25/jquery-performance-rules/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jquery-performance-rules</link>
		<comments>http://www.chentianwen.net/wordpress/2009/11/25/jquery-performance-rules/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 06:54:14 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=230</guid>
		<description><![CDATA[<p>from <a href="http://www.artzstudio.com/2009/04/jquery-performance-rules/">http://www.artzstudio.com/2009/04/jquery-performance-rules/</a></p> <p>Once upon a time, all we needed to worry about was reducing Bytes and Requests and playing around with load order to make things faster. Nowadays, we are increasingly impacting one more major component in performance - CPU utilization. Using jQuery and other frameworks that make selecting nodes and DOM manipulation easy can have [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2009/11/25/jquery-performance-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find event listeners on a DOM node</title>
		<link>http://www.chentianwen.net/wordpress/2009/11/25/how-to-find-event-listeners-on-a-dom-node/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-find-event-listeners-on-a-dom-node</link>
		<comments>http://www.chentianwen.net/wordpress/2009/11/25/how-to-find-event-listeners-on-a-dom-node/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 06:38:03 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=228</guid>
		<description><![CDATA[<p>from <a href="http://stackoverflow.com/questions/446892/how-to-find-event-listeners-on-a-dom-node/447106#447106">http://stackoverflow.com/questions/446892/how-to-find-event-listeners-on-a-dom-node/447106#447106</a></p> <p>It depends on how the events are attached. For illustration presume we have the following click handler:</p> var handler = function() { alert('clicked!') }; <p>We&#8217;re going to attach it to our element using different methods, some which allow inspection and some that don&#8217;t.</p> <p>Method A) single event handler</p> element.onclick = handler; // inspect [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2009/11/25/how-to-find-event-listeners-on-a-dom-node/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Calling external javascript on button click in Flash</title>
		<link>http://www.chentianwen.net/wordpress/2009/11/05/calling-external-javascript-on-button-click-in-flash/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=calling-external-javascript-on-button-click-in-flash</link>
		<comments>http://www.chentianwen.net/wordpress/2009/11/05/calling-external-javascript-on-button-click-in-flash/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 13:19:51 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=226</guid>
		<description><![CDATA[from <a href="http://samsami2u.wordpress.com/2008/06/04/calling-external-javascript-on-button-click-in-flash/">http://samsami2u.wordpress.com/2008/06/04/calling-external-javascript-on-button-click-in-flash/</a> Calling external javascript in flash is really easy. just follow the guidelines given below: <p>create a flash button in flash.</p> <p>single click on the flash button and open the action script window related to the flash button.</p> <p>in the action script window please write down the following action script:</p> <p>on (release) {<br /> getURL(“javascript:JavascriptFunction();”,”_self”);<br /> }</p> <p>where JavascriptFunction() is the external javascript [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2009/11/05/calling-external-javascript-on-button-click-in-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMLHTTP notes: readyState and the events</title>
		<link>http://www.chentianwen.net/wordpress/2009/05/22/xmlhttp-notes-readystate-and-the-events/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=xmlhttp-notes-readystate-and-the-events</link>
		<comments>http://www.chentianwen.net/wordpress/2009/05/22/xmlhttp-notes-readystate-and-the-events/#comments</comments>
		<pubDate>Fri, 22 May 2009 08:28:00 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=195</guid>
		<description><![CDATA[<p>from <a href="http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_r_2.html">http://www.quirksmode.org/blog/archives/2005/09/xmlhttp_notes_r_2.html</a></p> <p class="intro">As we all know an xmlhttp script requires the use of the readystatechange event. In theory, using the load event is also possible, but Explorer doesn&#8217;t support it on xmlhttp requests.</p> <p>Both these events, and the readyState property, have a few odd quirks when used in an xmlhttp environment, though. These [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2009/05/22/xmlhttp-notes-readystate-and-the-events/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE page cache problem with AJAX</title>
		<link>http://www.chentianwen.net/wordpress/2009/05/19/ie-page-cache-problem-with-ajax/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ie-page-cache-problem-with-ajax</link>
		<comments>http://www.chentianwen.net/wordpress/2009/05/19/ie-page-cache-problem-with-ajax/#comments</comments>
		<pubDate>Tue, 19 May 2009 05:30:27 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Browser]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Ajax]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=193</guid>
		<description><![CDATA[Problem: <p>When doing AJAX call, IE will cache every AJAX call. Hence, url such as &#8216;/post.do&#8217; will return the same thing and actually the AJAX request will not be sent after the first time.</p> Solution: <p>put AJAX url &#8216;/post.do&#8217; with a time stamp as following:</p> jQuery.get('/post.do?ts='+(new Date()).getTime());]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2009/05/19/ie-page-cache-problem-with-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Char Codes (Key Codes)</title>
		<link>http://www.chentianwen.net/wordpress/2009/01/20/javascript-char-codes-key-codes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=javascript-char-codes-key-codes</link>
		<comments>http://www.chentianwen.net/wordpress/2009/01/20/javascript-char-codes-key-codes/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 04:21:15 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=149</guid>
		<description><![CDATA[<p>from <a href="http://www.cambiaresearch.com/c4/702b8cd1-e5b0-42e6-83ac-25f0306e3e25/Javascript-Char-Codes-Key-Codes.aspx">http://www.cambiaresearch.com/c4/702b8cd1-e5b0-42e6-83ac-25f0306e3e25/Javascript-Char-Codes-Key-Codes.aspx</a></p> Key Pressed Javascript Key Code backspace 8 tab 9 enter 13 shift 16 ctrl 17 alt 18 pause/break 19 caps lock 20 escape 27 page up 33 page down 34 end 35 home 36 left arrow 37 up arrow 38 right arrow 39 down arrow 40 insert 45 delete 46 0 48 [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2009/01/20/javascript-char-codes-key-codes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Practices for Speeding Up Your Web Site</title>
		<link>http://www.chentianwen.net/wordpress/2008/12/22/best-practices-for-speeding-up-your-web-site/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=best-practices-for-speeding-up-your-web-site</link>
		<comments>http://www.chentianwen.net/wordpress/2008/12/22/best-practices-for-speeding-up-your-web-site/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 07:22:28 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=141</guid>
		<description><![CDATA[<p>from <a href="http://developer.yahoo.com/performance/rules.html" target="_blank">http://developer.yahoo.com/performance/rules.html</a></p> Best Practices for Speeding Up Your Web Site <p>The Exceptional Performance team has identified a number of best practices for making web pages fast. The list includes 34 best practices divided into 7 categories.</p> <p class="inlPrompt">Filter by category:</p> <p> </p> Content <p> </p> Server <p> </p> Cookie <p> </p> CSS <p> </p> Javascript <p> </p> Images <p> </p> [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2008/12/22/best-practices-for-speeding-up-your-web-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Form Submit from Pressing &#8216;Enter&#8217; in Text Field</title>
		<link>http://www.chentianwen.net/wordpress/2008/11/20/disable-form-submit-from-pressing-enter-in-text-field/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disable-form-submit-from-pressing-enter-in-text-field</link>
		<comments>http://www.chentianwen.net/wordpress/2008/11/20/disable-form-submit-from-pressing-enter-in-text-field/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 16:47:39 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=123</guid>
		<description><![CDATA[<p>Just a note of jQuery fragment.</p> // cancel the default event action for input and move to the next element jQuery('input').keydown(function(e){     if (e.keyCode == 13 &#038;&#038; (e.target.type == 'text' &#124;&#124; e.target.type == 'password')){         var elements = jQuery(this).parents('form').get(0).elements;         var i = 0;         for (; i &#60; elements.length; i++) {             if (elements[i] [...]]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2008/11/20/disable-form-submit-from-pressing-enter-in-text-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent double submit a form using jQuery</title>
		<link>http://www.chentianwen.net/wordpress/2008/11/18/prevent-double-submit-a-form-using-jquery/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=prevent-double-submit-a-form-using-jquery</link>
		<comments>http://www.chentianwen.net/wordpress/2008/11/18/prevent-double-submit-a-form-using-jquery/#comments</comments>
		<pubDate>Tue, 18 Nov 2008 07:31:18 +0000</pubDate>
		<dc:creator>茶男</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.chentianwen.net/wordpress/?p=118</guid>
		<description><![CDATA[jQuery(document).ready(function(){ jQuery('form').submit(function(e){ jQuery(this).find('input[@type=submit],button[@type=submit]').attr('disable', 'true').css('color', '#ddd').css('background', '#aaa'); }) }]]></description>
		<wfw:commentRss>http://www.chentianwen.net/wordpress/2008/11/18/prevent-double-submit-a-form-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

