<?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>mrKrich™ &#187; Web</title>
	<atom:link href="http://beta.mrkrich.com/category/development/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://beta.mrkrich.com</link>
	<description>The happen things around me</description>
	<lastBuildDate>Fri, 09 Sep 2011 08:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The Theme</title>
		<link>http://beta.mrkrich.com/2010/04/the-theme/</link>
		<comments>http://beta.mrkrich.com/2010/04/the-theme/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 03:43:07 +0000</pubDate>
		<dc:creator>mrKrich</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://beta.mrkrich.com/?p=271</guid>
		<description><![CDATA[หลังจากลง Wordpress มาได้สักพักนึง ก็อย่างที่เห็น URL ยังเป็น beta อยู่ก็แสดงว่ายังไม่ Released เสียที (แต่ก็รู้สึกเท่ห์ๆอยู่เล็กๆนะ) ที่ตรงนี้ก็เลยเป็นเหมือนกับที่ลองของไปซะอย่างนั้น วันนี้เปิดไปเห็นหน้าเว็บของพี่ @PatSonic สวยดีก็เลยอยากได้มั่งก็เลยลากไปลากมาในหน้าเว็บพี่เค้าก็แอบเห็นว่าใช้ Theme นี้อยู่ก็เลยเอามาใช้มั่ง
ก็ค่อนข้างจะมีรายละเอียดเยอะมากเลยทีเดียว กว่าจะทำให้เป็นอย่างที่เห็นได้ก็ลองผิดลองถูกกันอยู่เป็นชั่วโมงเลยทีเดียวครับ ตอนนี้ก็รู้สึกว่า Logo มันไม่เข้ากับ Theme เลยแฮะ เหมือนสติ๊กเกอร์แปะท้ายรถแข่งมาแปะอยู่บนกล่อง macbook ซะงั้น
ก็สนุกดีครับ มีอะไรแปลกใหม่เยอะกว่า Theme เก่าเยอะเลยทีเดียว 
]]></description>
			<content:encoded><![CDATA[<p>หลังจากลง Wordpress มาได้สักพักนึง ก็อย่างที่เห็น URL ยังเป็น beta อยู่ก็แสดงว่ายังไม่ Released เสียที (แต่ก็รู้สึกเท่ห์ๆอยู่เล็กๆนะ) ที่ตรงนี้ก็เลยเป็นเหมือนกับที่ลองของไปซะอย่างนั้น วันนี้เปิดไปเห็นหน้าเว็บของพี่ @PatSonic สวยดีก็เลยอยากได้มั่งก็เลยลากไปลากมาในหน้าเว็บพี่เค้าก็แอบเห็นว่าใช้ Theme นี้อยู่ก็เลยเอามาใช้มั่ง</p>
<p>ก็ค่อนข้างจะมีรายละเอียดเยอะมากเลยทีเดียว กว่าจะทำให้เป็นอย่างที่เห็นได้ก็ลองผิดลองถูกกันอยู่เป็นชั่วโมงเลยทีเดียวครับ ตอนนี้ก็รู้สึกว่า Logo มันไม่เข้ากับ Theme เลยแฮะ เหมือนสติ๊กเกอร์แปะท้ายรถแข่งมาแปะอยู่บนกล่อง macbook ซะงั้น</p>
<p>ก็สนุกดีครับ มีอะไรแปลกใหม่เยอะกว่า Theme เก่าเยอะเลยทีเดียว </p>
]]></content:encoded>
			<wfw:commentRss>http://beta.mrkrich.com/2010/04/the-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Page Redirection</title>
		<link>http://beta.mrkrich.com/2009/12/page-redirection/</link>
		<comments>http://beta.mrkrich.com/2009/12/page-redirection/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 11:33:21 +0000</pubDate>
		<dc:creator>mrkrich</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://beta.mrkrich.com/?p=197</guid>
		<description><![CDATA[เมื่อวันก่อนมีน้องมาถามเกี่ยวกับเรื่อง Page Redirection ก็เลยคิดว่าจะเอามาเป็นพูดถึงเสียหน่อย
การ redirect หน้าเว็บ คือการส่งหน้าเว็บที่เปิดอยู่ปัจจุบันไปยังหน้าอื่น สามารถทำได้ 3 ระดับดังนี้

ระดับ HTTP Header
ระดับ HTML Header
ระดับ Script


1. ระดับ HTTP Header
เป็นวิธีที่ใช้ได้กับทุก Browser สะดวกรวดเร็ว เพราะไม่จำเป็นจะต้องมีการ render หน้าเว็บ หรือ html tag ใดๆเลย
ตัวอย่างการใช้งาน (PHP)
&#60;?
header(&#8220;location: http://www.google.com&#8221;);
?&#62;
2. ระดับ HTML Header
เป็นวิธีที่ใช้ได้กับทุก Browser เหมือนกับระดับ HTTP Header แต่สามารถใช้ได้กับเว็บที่ไม่ได้ใช้ CGI แต่จะช้ากว่าเนื่องจากใช้ html tag ในการบอก Browser ให้ทำการ redirect
ตัวอย่างการใช้งาน
&#60;html&#62;
&#60;head&#62;
&#60;meta http-equiv=&#8221;refresh&#8221; content=&#8221;2;url=http://www.google.com&#8221;&#62;
&#60;/head&#62;
&#60;/html&#62;
3. ระดับ Script
เป็นวิธีที่นิยมใช้กันมาก เนื่องจากสามารถสร้างเงื่อนไขต่างๆในการทำงานให้กับการ redirect ได้ ซึ่งในวิธีการนี้จะใช้ global object <a href="http://beta.mrkrich.com/2009/12/page-redirection/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>เมื่อวันก่อนมีน้องมาถามเกี่ยวกับเรื่อง Page Redirection ก็เลยคิดว่าจะเอามาเป็นพูดถึงเสียหน่อย</p>
<p>การ redirect หน้าเว็บ คือการส่งหน้าเว็บที่เปิดอยู่ปัจจุบันไปยังหน้าอื่น สามารถทำได้ 3 ระดับดังนี้</p>
<ul>
<li>ระดับ HTTP Header</li>
<li>ระดับ HTML Header</li>
<li>ระดับ Script</li>
</ul>
<p><span id="more-197"></span></p>
<h3>1. ระดับ HTTP Header</h3>
<p>เป็นวิธีที่ใช้ได้กับทุก Browser สะดวกรวดเร็ว เพราะไม่จำเป็นจะต้องมีการ render หน้าเว็บ หรือ html tag ใดๆเลย</p>
<p>ตัวอย่างการใช้งาน (PHP)</p>
<blockquote><p>&lt;?</p>
<p>header(&#8220;location: http://www.google.com&#8221;);</p>
<p>?&gt;</p></blockquote>
<h3>2. ระดับ HTML Header</h3>
<p>เป็นวิธีที่ใช้ได้กับทุก Browser เหมือนกับระดับ HTTP Header แต่สามารถใช้ได้กับเว็บที่ไม่ได้ใช้ CGI แต่จะช้ากว่าเนื่องจากใช้ html tag ในการบอก Browser ให้ทำการ redirect</p>
<p>ตัวอย่างการใช้งาน</p>
<blockquote><p>&lt;html&gt;</p>
<p>&lt;head&gt;</p>
<p>&lt;meta http-equiv=&#8221;refresh&#8221; content=&#8221;2;url=http://www.google.com&#8221;&gt;</p>
<p>&lt;/head&gt;</p>
<p>&lt;/html&gt;</p></blockquote>
<h3>3. ระดับ Script</h3>
<p>เป็นวิธีที่นิยมใช้กันมาก เนื่องจากสามารถสร้างเงื่อนไขต่างๆในการทำงานให้กับการ redirect ได้ ซึ่งในวิธีการนี้จะใช้ global object ที่ชื่อ location และมีวิธีการใช้งาน 2 แบบด้วยกัน</p>
<h4>3.1 แบบ property &#8211; href</h4>
<p>วิธีการนี้เป็นเหมือน link ปกติคือมีการเก็บ history เอาไว้ สามารถกดปุ่ม back กลับมายังหน้าปัจจุบันได้</p>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>location.href = &#8220;http://www.google.com&#8221;;</p>
<p>&lt;/script&gt;</p></blockquote>
<h4>3.2 แบบ function &#8211; replace</h4>
<p>วิธีนี้เป็นการแทนที่ใน history เดิม ทำให้ไม่สามารถกดปุ่ม back กลับมายังหน้าปัจจุบันได้</p>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221;&gt;</p>
<p>location.replace(&#8220;http://www.google.com&#8221;);</p>
<p>&lt;/script&gt;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://beta.mrkrich.com/2009/12/page-redirection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dojo Toolkit</title>
		<link>http://beta.mrkrich.com/2007/02/dojo-toolkit/</link>
		<comments>http://beta.mrkrich.com/2007/02/dojo-toolkit/#comments</comments>
		<pubDate>Thu, 15 Feb 2007 16:50:00 +0000</pubDate>
		<dc:creator>mrKrich</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://beta.mrkrich.com/?p=74</guid>
		<description><![CDATA[When I try to learn more about Dojo Toolkit. I found some problem of its script. such as uncompatible   of javascript and css style sheet. And on downloaded demo, It have too many debug message. No downloadable manual or document. (It have just wiki for manual.)
But its script is too excellence and so <a href="http://beta.mrkrich.com/2007/02/dojo-toolkit/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>When I try to learn more about Dojo Toolkit. I found some problem of its script. such as uncompatible   of javascript and css style sheet. And on downloaded demo, It have too many debug message. No downloadable manual or document. (It have just wiki for manual.)</p>
<p>But its script is too excellence and so exciting with easy way. just like &#8216;taglib&#8217; in Java. (Or another language)</p>
<p>today I waste too much time to find and read manual.  But you can found sample in demo section.</p>
]]></content:encoded>
			<wfw:commentRss>http://beta.mrkrich.com/2007/02/dojo-toolkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dynamic HTML tips</title>
		<link>http://beta.mrkrich.com/2007/02/dynamic-html-tips/</link>
		<comments>http://beta.mrkrich.com/2007/02/dynamic-html-tips/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 14:33:00 +0000</pubDate>
		<dc:creator>mrKrich</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://beta.mrkrich.com/?p=73</guid>
		<description><![CDATA[Hello it&#8217;s valentine again, Last 4 valentine ago. I used to have new web diary. 4 years later I have new one. &#8220;Dynamic HTML tips&#8221; is it.
It talk about HTML, Javascript and CSS Style Sheet tips. That may help newbie to create his/her own website with text editor. (I think manually coding HTML code is <a href="http://beta.mrkrich.com/2007/02/dynamic-html-tips/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Hello it&#8217;s valentine again, Last 4 valentine ago. I used to have new web diary. 4 years later I have new one. &#8220;<a href="http://html.mrkrich.com/">Dynamic HTML tips</a>&#8221; is it.</p>
<p>It talk about HTML, Javascript and CSS Style Sheet tips. That may help newbie to create his/her own website with text editor. (I think manually coding HTML code is more beautiful.)</p>
]]></content:encoded>
			<wfw:commentRss>http://beta.mrkrich.com/2007/02/dynamic-html-tips/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML and XHTML</title>
		<link>http://beta.mrkrich.com/2007/02/html-and-xhtml/</link>
		<comments>http://beta.mrkrich.com/2007/02/html-and-xhtml/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 13:49:00 +0000</pubDate>
		<dc:creator>mrKrich</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://beta.mrkrich.com/?p=55</guid>
		<description><![CDATA[Do you know what difference between HTML and XHTML? And how it difference?
HTML is HyperText Markup Language and XHTML is eXtend HyperText Markup Language. From the name we can know XHTML is newer than HTML and have something added.
HTML 3.2, HTML 4.0 and HTML 4.0.1 is Original Markup language that have flexible syntax but difficult <a href="http://beta.mrkrich.com/2007/02/html-and-xhtml/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Do you know what difference between HTML and XHTML? And how it difference?</p>
<p>HTML is HyperText Markup Language and XHTML is eXtend HyperText Markup Language. From the name we can know XHTML is newer than HTML and have something added.</p>
<p><span style="font-weight: bold;font-size:180%;" ></span><!--{command}-->HTML 3.2, HTML 4.0 and HTML 4.0.1 is Original Markup language that have flexible syntax but difficult to parse by program. Why? because HTML tag syntax is<br />
<blockquote><span style="font-weight: bold;">HTML TAG USAGE:</span><br />&lt;{command} [attribute[="..."] [attribute[="..."] [...]]]&gt;[...&lt;/{command}&gt;]</p></blockquote>
<p><!--{command}-->Are you see what make it difficult? &#8230; Yes it is tag and attribute  like e.g. &lt;img&gt; &lt;br&gt; or &lt;hr&gt;.<br />
<blockquote><span style="font-weight: bold;">HTML TAG USAGE:</span><br /><{command} [attribute<span style="font-weight: bold; background-color:yellow;">[="..."]</span> [attribute<span style="font-weight: bold;background-color:yellow;">[="..."]</span> [...]]]&gt;<span style="font-weight: bold;background-color:yellow;">[...&lt;/{command}&gt;]<br /></span><span>*** problem part  is hilighting</span><span style="font-weight: bold;"><br /></span></p></blockquote>
<p>HTML tag below start without close tag because it not need to have.  But it make browser or another program hard to parse to use (Microsoft try to automatic fill it before display). but in XHTML, it based on XML. What it&#8217;s mean? It mean HTML tag must have end tag or use single tag style. It syntax be<br />
<blockquote><span style="font-weight: bold;">XHTML TAG USAGE:</span><br />(<{command} [attribute="" [attribute=""[...]]]&gt;&#8230;|<{command} [attribute="" [attribute="" [...]]]/>)</p></blockquote>
<p>It make you must close all your open tag else use single tag. However   if you not use it in strictly mode you also use it like HTML.</p>
<p>Not only &#8220;Tag&#8221; that make it difference. If I have more time, I&#8217;ll talk to that topic again</p>
]]></content:encoded>
			<wfw:commentRss>http://beta.mrkrich.com/2007/02/html-and-xhtml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Welcome to Dynamic HTML tips.</title>
		<link>http://beta.mrkrich.com/2007/02/welcome-to-dynamic-html-tips/</link>
		<comments>http://beta.mrkrich.com/2007/02/welcome-to-dynamic-html-tips/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 02:19:00 +0000</pubDate>
		<dc:creator>mrKrich</dc:creator>
				<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://beta.mrkrich.com/?p=54</guid>
		<description><![CDATA[This is my collection of my experience over 8 years in web developing. Since I&#8217;m newbie to now I used too many develop tools and language. But here I&#8217;ll focus on Web Application at Client Site only. Such as HTML, XHTML, JavaScript and CSS Style Sheet.
HTML and XHTML, It&#8217;s same but difference. My tips will <a href="http://beta.mrkrich.com/2007/02/welcome-to-dynamic-html-tips/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>This is my collection of my experience over 8 years in web developing. Since I&#8217;m newbie to now I used too many develop tools and language. But here I&#8217;ll focus on Web Application at Client Site only. Such as HTML, XHTML, JavaScript and CSS Style Sheet.</p>
<p>HTML and XHTML, It&#8217;s same but difference. My tips will suggest the easier way to use it with text editor.</p>
<p>JavaScript, The Scripting language that provide dynamic to your site. Not all command that support on the browser.</p>
<p>CSS Style Sheet, The easiest way to make web site theme without fix code, its make your web site easy to change theme.</p>
<p>I&#8217;ll post it early soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://beta.mrkrich.com/2007/02/welcome-to-dynamic-html-tips/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>dojo &#8211; the javascript toolkit</title>
		<link>http://beta.mrkrich.com/2007/02/dojo-the-javascript-toolkit/</link>
		<comments>http://beta.mrkrich.com/2007/02/dojo-the-javascript-toolkit/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 17:12:00 +0000</pubDate>
		<dc:creator>mrKrich</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://beta.mrkrich.com/?p=71</guid>
		<description><![CDATA[Ummm too many times ago. I try to write and javascript by myself. today my boss said &#8220;Why dont you try dojo toolkit for you ajax or javascript?&#8221;
I ask him for dojo like &#8220;what dojo is?&#8221; or &#8220;how its better than specific javascript?&#8221; because i think &#8220;Ajax is so easy and javascript i&#8217;m not newbie&#8221;
The <a href="http://beta.mrkrich.com/2007/02/dojo-the-javascript-toolkit/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>Ummm too many times ago. I try to write and javascript by myself. today my boss said &#8220;Why dont you try <a href="http://dojotoolkit.org/">dojo toolkit</a> for you ajax or javascript?&#8221;</p>
<p>I ask him for dojo like &#8220;what dojo is?&#8221; or &#8220;how its better than specific javascript?&#8221; because i think &#8220;Ajax is so easy and javascript i&#8217;m not newbie&#8221;</p>
<p>The first time of its demo. It attack my ego. Its great tool that provide beautiful web object, ajax and another. I don&#8217;t know how can it work. Or how difficult is it for specific perpose.</p>
<p>but I know one,  Its demo is too excellence.</p>
]]></content:encoded>
			<wfw:commentRss>http://beta.mrkrich.com/2007/02/dojo-the-javascript-toolkit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Header</title>
		<link>http://beta.mrkrich.com/2007/02/http-header/</link>
		<comments>http://beta.mrkrich.com/2007/02/http-header/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 18:14:00 +0000</pubDate>
		<dc:creator>mrKrich</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://beta.mrkrich.com/?p=69</guid>
		<description><![CDATA[on my testing web. I try to use AJAX on my site and found some error if i use non unicode. may be my page encoding or somethings wrong behind the protocol.
so i try to use UTF-8  for this problem. So i found another problem to solve!!!
i put this line on my HTML



it found, <a href="http://beta.mrkrich.com/2007/02/http-header/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>on my testing web. I try to use AJAX on my site and found some error if i use non unicode. may be my page encoding or somethings wrong behind the protocol.</p>
<p>so i try to use UTF-8  for this problem. So i found another problem to solve!!!</p>
<p>i put this line on my HTML<br />
<blockquote>
<pre id="line1"><<span class="start-tag">meta</span><span class="attribute-name"> http-equiv</span>=<span class="attribute-value">Content-Type </span><span class="attribute-name">content</span>=<span class="attribute-value">"text/html; charset=UTF-8"</span>/></pre>
</blockquote>
<p>it found, but not set my page to UTF-8 as set!! (You can check with page info in firefox)<br />after search in too many site i found something.<br />My web server was set default charset/encoding to ISO8859-11 / TIS-620 / WIndows-874/ CP874 (Thai)<br />so i have only two choice to do.  Change web server setting or customize http header</p>
<p>I&#8217;ll not talk to change default web server configuration for charset/encoding so i will talk about how to customize http header</p>
<p>php: use command <a href="http://www.php.net/manual/en/function.header.php">header()</a> to set content-type like this<br />
<blockquote>header(&#8220;Content-Type: text/html; charset=UTF-8;&#8221;);</p></blockquote>
<p>jsp: you usually use this in your code<br />
<blockquote><%@ page language="java" contentType="text/html; charset=UTF-8" %></p></blockquote>
<p>so on another programming language must have its own way to do something like this</p>
]]></content:encoded>
			<wfw:commentRss>http://beta.mrkrich.com/2007/02/http-header/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

