<?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>simple singularities &#187; javascript</title>
	<atom:link href="http://fri13th.com/blog/archives/category/javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://fri13th.com/blog</link>
	<description>presented by lazy fri13th since 2006</description>
	<lastBuildDate>Mon, 26 Apr 2010 09:09:49 +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>jQuery &amp; script.aculo.us conflict problem</title>
		<link>http://fri13th.com/blog/archives/335</link>
		<comments>http://fri13th.com/blog/archives/335#comments</comments>
		<pubDate>Wed, 10 Dec 2008 12:41:05 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/335</guid>
		<description><![CDATA[in jQuery&#8217;s official site, they say jQuery has no conflict with major library.. yeah, that may be right.. i believed it and implement in my prototype and script.aculo.us environment.
when i test class selector jQuery(&#8220;.myClass&#8221;), it doesn&#8217;t simply work, id selector works fine..
jQuery.noConflict() has useless in this case.. and i tested my code and there was [...]]]></description>
			<content:encoded><![CDATA[<p>in jQuery&#8217;s official site, they say jQuery has no conflict with major library.. yeah, that may be right.. i believed it and implement in my prototype and script.aculo.us environment.</p>
<p>when i test class selector jQuery(&#8220;.myClass&#8221;), it doesn&#8217;t simply work, id selector works fine..<br />
jQuery.noConflict() has useless in this case.. and i tested my code and there was no error at all..</p>
<p>so i disabled script.aculo.us after few hour&#8217;s labor, it works like a charm..<br />
the program was only 10 or so minutes to finish, but i spent full afternoon for this issue.. </p>
<p>it&#8217;s very curious.. because of jQuery&#8217;s nature, it isn&#8217;t easy at all to make a conflict like this..<br />
but there is one in reality..</p>
<p>i couldn&#8217;t find about conflict reporting in jQuery.. so be careful to select and combine<br />
javascript libraries.</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/335/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery problem: click event not fired in ff3, ubuntu</title>
		<link>http://fri13th.com/blog/archives/311</link>
		<comments>http://fri13th.com/blog/archives/311#comments</comments>
		<pubDate>Thu, 11 Sep 2008 03:26:35 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[firefox]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/?p=311</guid>
		<description><![CDATA[i turned off cookie and test as if ff is mobile browser.
and at the same mode, i develop some web page.
then jquery&#8217;s click event doesn&#8217;t work. i don&#8217;t know why it does..
so i turned on cookie and my js program works fine.
and that&#8217;s all.. there are too many mysteries in the browser.
]]></description>
			<content:encoded><![CDATA[<p>i turned off cookie and test as if ff is mobile browser.<br />
and at the same mode, i develop some web page.</p>
<p>then jquery&#8217;s click event doesn&#8217;t work. i don&#8217;t know why it does..<br />
so i turned on cookie and my js program works fine.<br />
and that&#8217;s all.. there are too many mysteries in the browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/311/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery work around</title>
		<link>http://fri13th.com/blog/archives/307</link>
		<comments>http://fri13th.com/blog/archives/307#comments</comments>
		<pubDate>Sat, 06 Sep 2008 04:32:16 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/307</guid>
		<description><![CDATA[i developed some code using jQuery. and sometimes fadeIn doesn&#8217;t work and i don&#8217;t know why. so i google it and find some answer..

http://www.nabble.com/Odd-JQuery-behavior-in-FF-td17735413s27240.html

1
body &#123; -moz-opacity: 0.9999; &#125;

looks wierd. is it a ff3 bug or jQuery bug? i can&#8217;t say..
ok, this is my first obstacle, but i think i will use jQuery as my primary [...]]]></description>
			<content:encoded><![CDATA[<p>i developed some code using jQuery. and sometimes fadeIn doesn&#8217;t work and i don&#8217;t know why. so i google it and find some answer..<br />
<a href=" http://www.nabble.com/Odd-JQuery-behavior-in-FF-td17735413s27240.html"></p>
<p>http://www.nabble.com/Odd-JQuery-behavior-in-FF-td17735413s27240.html</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">body <span style="color: #00AA00;">&#123;</span> -moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.9999</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>looks wierd. is it a ff3 bug or jQuery bug? i can&#8217;t say..</p>
<p>ok, this is my first obstacle, but i think i will use jQuery as my primary javascript framework. this is simple and has a lot of functions i want. i have to rewrite all my prototypejs code to jQuery. it will take some time but worth it.</p>
<p>my plan to make another javascript framework will not be fulfilled in this year. i feel sad about that. but to develop jquery, it&#8217;s another chance to promote my will. and maybe i can release mine in next year or so, hopefully..</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/307/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript multiline match</title>
		<link>http://fri13th.com/blog/archives/277</link>
		<comments>http://fri13th.com/blog/archives/277#comments</comments>
		<pubDate>Tue, 24 Jul 2007 03:04:03 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/277</guid>
		<description><![CDATA[javascripts&#8217;s . (dot) doesn&#8217;t match line boundary. so if you want match all strings in a multiline string, you should use [^]* instead normal .*&#160; multiline flag &#8216;m&#8217; is useless in this case.
it&#8217;s a small tip, but perl programmer like me doesn&#8217;t understand this behavior.. gee..
below is regex test page, i found today from ajaxian. [...]]]></description>
			<content:encoded><![CDATA[<p>javascripts&#8217;s . (dot) doesn&#8217;t match line boundary. so if you want match all strings in a multiline string, you should use [^]* instead normal .*&nbsp; multiline flag &#8216;m&#8217; is useless in this case.</p>
<p>it&#8217;s a small tip, but perl programmer like me doesn&#8217;t understand this behavior.. gee..</p>
<p>below is regex test page, i found today from ajaxian. cool,&nbsp; but you have to be be cautious. it easily sutdowns the browser, when you testing this syntax /.*/g or so.<br /><a href="http://erik.eae.net/playground/regexp/regexp.html">http://erik.eae.net/playground/regexp/regexp.html</a></p>
<p>P.S. unfortunately [^] doesn&#8217;t work in IE.. use [\s\S] instead, it works very fine..</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/277/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>fabtabulous</title>
		<link>http://fri13th.com/blog/archives/271</link>
		<comments>http://fri13th.com/blog/archives/271#comments</comments>
		<pubDate>Tue, 03 Jul 2007 05:31:16 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/271</guid>
		<description><![CDATA[a cool tab solution using prototype.. i customize it for my personal project..
http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/there are a lot of obscure things in javascript, so actual working-source is very helpful to newbies.. (I can&#8217;t understand the exact difference of Enumerable and Array)
]]></description>
			<content:encoded><![CDATA[<p>a cool tab solution using prototype.. i customize it for my personal project..</p>
<p><a href="http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/">http://tetlaw.id.au/view/blog/fabtabulous-simple-tabs-using-prototype/</a><br />there are a lot of obscure things in javascript, so actual working-source is very helpful to newbies.. (I can&#8217;t understand the exact difference of Enumerable and Array)</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/271/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>building scalable web sites</title>
		<link>http://fri13th.com/blog/archives/235</link>
		<comments>http://fri13th.com/blog/archives/235#comments</comments>
		<pubDate>Tue, 16 Jan 2007 06:22:58 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[flickr]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/235</guid>
		<description><![CDATA[
the author of this books is the main developer of flickr, the most famous site in the world. i&#8217;m very fond of flickring way, i also love this book. the main topic is creating large scale service with php, mysql, apache, etc.. everybody want to know about it, but there&#8217;s so few book for that.
there&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p><a title="View product details at Amazon" href="http://www.amazon.com/gp/redirect.html%3FASIN=0596102356%26tag=simplesingula-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0596102356%253FSubscriptionId=0EMV44A9A5YT1RVDGZ82"><img alt="Building Scalable Web Sites: Building, Scaling, and Optimizing the Next Generation of Web Applications" src="http://ec1.images-amazon.com/images/P/0596102356.01._SCLZZZZZZZ_V52808810_.jpg" /></a></p>
<p>the author of this books is the main developer of flickr, the most famous site in the world. i&#8217;m very fond of flickring way, i also love this book. the main topic is creating large scale service with php, mysql, apache, etc.. everybody want to know about it, but there&#8217;s so few book for that.</p>
<p>there&#8217;re full of great topics i&#8217;ve wanted to know. from i18n, security to network, db tuning.. i learned much and i&#8217;ll apply those to my next projects. thanx, handerson!</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/235/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iphone &amp; unobstrusive html</title>
		<link>http://fri13th.com/blog/archives/232</link>
		<comments>http://fri13th.com/blog/archives/232#comments</comments>
		<pubDate>Wed, 10 Jan 2007 02:12:10 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web2.0]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/232</guid>
		<description><![CDATA[as a mac user i see the anticipated iphone today. it&#8217;s a fantastic machine though somewhat expensive. it has an embedded safari browser, so i can see every normal site for pc through it. but it&#8217;s no surprise, in japan.&#160; full browser support phone was sold since 2005 in this country. 
my main job was [...]]]></description>
			<content:encoded><![CDATA[<p>as a mac user i see the anticipated iphone today. it&#8217;s a fantastic machine though somewhat expensive. it has an embedded safari browser, so i can see every normal site for pc through it. but it&#8217;s no surprise, in japan.&nbsp; full browser support phone was sold since 2005 in this country. </p>
<p>my main job was related to the japan mobile market. so i aware the importance of unobstrusive web technique very early. where the mobile&nbsp; technology&nbsp; goes&nbsp; advance, also old-fashioned html technique needed more. like bitmap graphic technique is needed in mobile game in this 3D Game age.</p>
<p>so, iphone will be prevailed in america and world-wide sooner or later. many competitive phones embedded brower will be available everywhere. and you know there&#8217;re more and more phones than pcs in the world. and that time, browser market share will be changed drastically. especially big fat ie will not be the major browser any more. i can&#8217;t even assure the position of firefox. safari or opera or customed browser(i.e. vodafone browser, docomo browser, qualcomm browser) who targeted mobile market from early days will be the champion of next browser war. </p>
<p>i thinks&nbsp; it takes not so long time. as a web developer, we have to prepare sites for the limited resources. well-tuned tags &amp; unobstrusive javascript and css support for small window and slow traffics. cookie may be unavailable, also. we have to focus on every html component, check every componenet is unobstrusive, not only javascript.</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/232/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript the definitive guide</title>
		<link>http://fri13th.com/blog/archives/228</link>
		<comments>http://fri13th.com/blog/archives/228#comments</comments>
		<pubDate>Thu, 28 Dec 2006 00:38:38 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[book]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/228</guid>
		<description><![CDATA[
totally great! full of insights, but not for novice programmers. i knew the 4th edition published in 2001 was too out-of-dated in this ajax age,&#160; so it didn&#8217;t attract me a little bit. but i heard the 5th published in this August, 2006, and its reviews were great. so i decide to buy it.
i give [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.amazon.com/gp/redirect.html%3FASIN=0596101996%26tag=simplesingula-20%26lcode=xm2%26cID=2025%26ccmID=165953%26location=/o/ASIN/0596101996%253FSubscriptionId=0EMV44A9A5YT1RVDGZ82" title="View product details at Amazon"><img src="http://ec2.images-amazon.com/images/P/0596101996.01._SCLZZZZZZZ_V52808811_.jpg" alt="JavaScript: The Definitive Guide" /></a></p>
<p>totally great! full of insights, but not for novice programmers. i knew the 4th edition published in 2001 was too out-of-dated in this ajax age,&nbsp; so it didn&#8217;t attract me a little bit. but i heard the 5th published in this August, 2006, and its reviews were great. so i decide to buy it.</p>
<p>i give 5 stars to this lovely book!</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/228/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>about firebug debug mode</title>
		<link>http://fri13th.com/blog/archives/227</link>
		<comments>http://fri13th.com/blog/archives/227#comments</comments>
		<pubDate>Wed, 27 Dec 2006 03:52:48 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/227</guid>
		<description><![CDATA[debug codes in firebug cause some critical error in other browsers like ie. and you know&#160; debug codes in a published product aren&#8217;t desirable at all. so i think you need this peice of code. so even if you forget to remove all debug codes, no serious error occurs!
__DEBUG__ = true;__DEBUG_FORCE__ = false;
if (__DEBUG_FORCE__ &#38;&#38; [...]]]></description>
			<content:encoded><![CDATA[<p>debug codes in firebug cause some critical error in other browsers like ie. and you know&nbsp; debug codes in a published product aren&#8217;t desirable at all. so i think you need this peice of code. so even if you forget to remove all debug codes, no serious error occurs!</p>
<p>__DEBUG__ = true;<br />__DEBUG_FORCE__ = false;</p>
<p>if (__DEBUG_FORCE__ &amp;&amp; typeof console == &#8216;undefined&#8217;) {<br />&nbsp;&nbsp;&nbsp; console = {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log : alert,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; debug : alert,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; info : alert,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; warn : alert,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error : alert<br />&nbsp;&nbsp;&nbsp; };<br />}<br />else if (!__DEBUG__ || typeof console == &#8216;undefined&#8217;) {<br />&nbsp;&nbsp;&nbsp; console = {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log : function () {},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; debug : function () {},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; info : function () {},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; warn : function () {},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; error : function () {}<br />&nbsp;&nbsp;&nbsp; };<br />}</p>
<p>so you feel somewhat safe, just like me <img src='http://fri13th.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  anyway firebug is great tool! it&#8217;s a mandatory not recommend!</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/227/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ajax cache problem</title>
		<link>http://fri13th.com/blog/archives/226</link>
		<comments>http://fri13th.com/blog/archives/226#comments</comments>
		<pubDate>Mon, 25 Dec 2006 01:50:02 +0000</pubDate>
		<dc:creator>fri13th</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://fri13th.com/blog/archives/226</guid>
		<description><![CDATA[if cache is on, you always get a same result on a same url request. it&#8217;s somewhat&#160; undesirable. there exist some strategies for this.
1. use &#8216;post&#8217; instead &#8216;get&#8217;browsers usually cache get request, especially IE. but sometimes post will be cached too. you must be careful when you think about supporting as many browsers as you [...]]]></description>
			<content:encoded><![CDATA[<p>if cache is on, you always get a same result on a same url request. it&#8217;s somewhat&nbsp; undesirable. there exist some strategies for this.</p>
<p>1. use &#8216;post&#8217; instead &#8216;get&#8217;<br />browsers usually cache get request, especially IE. but sometimes post will be cached too. you must be careful when you think about supporting as many browsers as you can.</p>
<p>2. add unique parameters that make url unique.</p>
<p>url += ((url.indexOf(&quot;?&quot;) +1) ?&nbsp; &quot;&amp;&quot; :&nbsp; &quot;?&quot; )+ &quot;_d=&quot; + new Date().getTime(); </p>
<p>or </p>
<p>url += ((url.indexOf(&quot;?&quot;)+1) ?&nbsp; &quot;&amp;&quot; :&nbsp; &quot;?&quot;) + &quot;_r=&quot; + Math.random();</p>
<p>3. add cache-control to http request header<br />this code is different by the type of cgi language you use<br />below is a php sample code</p>
<p>header(&rsquo;Content-Type: text/html; charset=iso-8859-2&prime;);<br /> header(&rsquo;Last-Modified: &lsquo;.gmdate(&rsquo;D, d M Y H:i:s&rsquo;).&rsquo; GMT&rsquo;);<br /> header(&rsquo;Expires: Thu, 19 Nov 1981 08:52:00 GMT&rsquo;);<br /> header(&rsquo;Cache-Control: no-store, no-cache, must-revalidate&rsquo;);<br /> header(&rsquo;Cache-Control: post-check=0, pre-check=0&prime;, false);<br /> header(&rsquo;Pragma: no-cache&rsquo;);</p>
<p>4. add cache-control to meta tag<br />&lt;META HTTP-EQUIV=&quot;CACHE-CONTROL&quot; CONTENT=&quot;NO-CACHE&quot;&gt;<br />&lt;META HTTP-EQUIV=&quot;PRAGMA&quot; CONTENT=&quot;NO-CACHE&quot;&gt;<br />&lt;META HTTP-EQUIV=&quot;EXPIRES&quot; CONTENT=&quot;0&quot;&gt;</p>
<p>1 &amp; 2 are surely enough for my purpose till now <img src='http://fri13th.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> <br />is there any more? please notify me~</p>
]]></content:encoded>
			<wfw:commentRss>http://fri13th.com/blog/archives/226/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
