<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.feedburner.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><!-- generator="wordpress/2.3.1" --><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Javascript Kata</title>
	<link>http://www.javascriptkata.com</link>
	<description>Advanced katas for javascripters</description>
	<pubDate>Fri, 14 Mar 2008 15:39:43 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
	<language>en</language>
			<image><link>http://www.javascriptkata.com</link><url>http://www.javascriptkata.com/wp-content/themes/javascriptkata1.3/images/jk_logo_small.png</url><title>Javascript Kata</title></image><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/JavascriptKata" type="application/rss+xml" /><feedburner:emailServiceId>798606</feedburner:emailServiceId><feedburner:feedburnerHostname>http://www.feedburner.com</feedburner:feedburnerHostname><item>
		<title>Load a page with javascript</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/233772744/</link>
		<comments>http://www.javascriptkata.com/2008/02/12/load-a-page-with-javascript/#comments</comments>
		<pubDate>Tue, 12 Feb 2008 14:31:20 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[Ask Dan a javascript question]]></category>

		<category><![CDATA[white belt]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/02/12/load-a-page-with-javascript/</guid>
		<description><![CDATA[Someone asked me : "I would like this site to automatically load a certain page (1-31) depending on what day of the month it is (1-31)"]]></description>
			<content:encoded><![CDATA[<p>I receive javascript-related questions in my inbox from time to time and here&#8217;s the last one.</p>
<blockquote><p> I am ok with HTML but awfully new to JavaScript and I know very little at this point. My question is for this web site I&#8217;m building. I need to know the exact JavaScript code and placement of the code in an HTML document for this goal. I would like this site to <strong>automatically load a certain page (1-31) depending on what day of the month it is (1-31)</strong>. I don&#8217;t need to worry about what month or year it is, just the date in the month. For instance when it is the eleventh day in the month, page11.html will automatically load when you click on to the site. I would like it to take the time(Date) from the client side not the server. This way no mater what time zone your in the right HTML page will pop up at midnight.</p></blockquote>
<p>Most people can&#8217;t give the <em>exact javascript code placement of the code in an HTML document</em> because it would always be buggy. They can give hints and/or snippets of code but rarely a complete working piece. Sorry&#8230;</p>
<p>Secondly, relying on javascript to do all this work would be a mistake because <strong>if javascript is disabled, the site will not work</strong>. Most users have javascript enabled but you should always think about web-crawlers (google, yahoo!, etc) that will try to index your page but will hit an empty page.</p>
<p>It&#8217;s always hard to guess all the reasons why someone would want a different page everyday of the month and I don&#8217;t know more about the project than what is written above. Considering this, maybe there are just parts of the page that are changing everyday and you could load them on the server-side thus having a single page loading including other pages depending on the day. The problem is that you would have to ask the timezone of the user and keep it in a cookie.</p>
<p>Just remember, <strong>javascript should not be a requirement to navigate in a site</strong>.</p>
<p>Finally, if I would really want to load a complete new page in javascript, I would do the following.</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1"><span class="kw2">var</span> dayOfTheMonth = <span class="br0">&#40;</span><span class="kw2">new</span> Date<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>.<span class="me1">getDate</span><span class="br0">&#40;</span><span class="br0">&#41;</span>;</div>
</li>
<li class="li1">
<div class="de1">location.<span class="me1">href</span>=<span class="st0">&quot;page&quot;</span> + dayOfTheMonth.<span class="me1">toString</span><span class="br0">&#40;</span><span class="br0">&#41;</span> + <span class="st0">&quot;.html&quot;</span>;</div>
</li>
</ol>
</div>
<p style="margin-bottom: 2em">&nbsp;</p>
<p>This is the way I would do it, <strong>do you have any other suggestions?</strong></p>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=cfA4Ak"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=cfA4Ak" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=xzXajfe"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=xzXajfe" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=KgtqBse"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=KgtqBse" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=wRuGqOE"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=wRuGqOE" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=HxJ1YDe"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=HxJ1YDe" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=TGvWgvE"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=TGvWgvE" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/02/12/load-a-page-with-javascript/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/02/12/load-a-page-with-javascript/</feedburner:origLink></item>
		<item>
		<title>Javascript for PHP lovers</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/225889703/</link>
		<comments>http://www.javascriptkata.com/2008/01/30/javascript-for-php-lovers/#comments</comments>
		<pubDate>Wed, 30 Jan 2008 12:57:23 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[Echo chamber]]></category>

		<category><![CDATA[librairie]]></category>

		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/01/30/javascript-for-php-lovers/</guid>
		<description><![CDATA[I&#8217;m not a PHP guy and I like to use standards for the languages I&#8217;m using so this php.js thing is not for me at all. In fact, I really dislike PHP and though I use it often, there is no reason in the world I would want to use its syntax to write javascript.
Import [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not a PHP guy and I like to use standards for the languages I&#8217;m using so this <a href="http://kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_strrpos/" target="_blank">php.js</a> thing is not for me at all. In fact, <a href="http://ihatephp.net/" target="_blank">I really dislike PHP</a> and though I use it often, there is no reason in the world I would want to use its syntax to write javascript.</p>
<p>Import the <a href="http://kevin.vanzonneveld.net/code/php_equivalents/php.js" target="_blank">librairie</a> (<a href="http://kevin.vanzonneveld.net/code/php_equivalents/php.packed.js" target="_blank">packed</a>) and write javascript like you never wrote it before.</p>
<p>Example, you want to use the good ol&#8217; <a href="http://ca3.php.net/strrpos" target="_blank">strrpos</a> to <em>find position of last occurrence of a char in a string (example from the site)</em></p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">strrpos<span class="br0">&#40;</span><span class="st0">&#8216;Kevin van Zonneveld&#8217;</span>, <span class="st0">&#8216;e&#8217;</span><span class="br0">&#41;</span>;</div>
</li>
</ol>
</div>
<p>would return <strong>16</strong>.</p>
<p>But what happens if a non-PHP guy as to modify your PHPed javascript?</p>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=tHgg24"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=tHgg24" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=T8VLxVd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=T8VLxVd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=CYUZXvd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=CYUZXvd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=Mp4XK2D"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=Mp4XK2D" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=XAC56qd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=XAC56qd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=ty7qagD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=ty7qagD" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/01/30/javascript-for-php-lovers/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/01/30/javascript-for-php-lovers/</feedburner:origLink></item>
		<item>
		<title>How to have jQuery and prototype.js in the same project</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/224497114/</link>
		<comments>http://www.javascriptkata.com/2008/01/28/how-to-have-jquery-and-prototypejs-in-the-same-project/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 11:02:41 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[black belt]]></category>

		<category><![CDATA[how to]]></category>

		<category><![CDATA[librairies]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/01/28/how-to-have-jquery-and-prototypejs-in-the-same-project/</guid>
		<description><![CDATA[I&#8217;m a big fan of jQuery. This librarie is just the best and simplest one around. I really noticed it when I wanted to get rid of jQuery in TimmyOnTime and try to use prototype.js instead, just to be more &#8220;rails-oriented&#8221; (that&#8217;s a pretty lame excuse don&#8217;t you think?)
Why I didn&#8217;t like prototype.js
There was not [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big fan of <a href="http://jquery.com/" target="_blank">jQuery</a>. This librarie is just the <strong>best</strong> and <strong>simplest</strong> one around. I really noticed it when I wanted to get rid of jQuery in <a href="http://timmyontime.com/" target="_blank">TimmyOnTime</a> and try to use <a href="http://www.prototypejs.org/" target="_blank">prototype.js</a> instead, just to be more &#8220;rails-oriented&#8221; (that&#8217;s a pretty lame excuse don&#8217;t you think?)</p>
<h3>Why I didn&#8217;t like prototype.js</h3>
<p>There was not a lot of javascript written for the project so I thought that getting rid of jQuery and using prototype.js would be easy. It turned out to be hell on earth. <strong>Prototype.js made me feel like I was back in the 90s writing C++</strong>. A simple click event turns out to be a awful lot of ugly code with ugly function names.</p>
<p>Example, <strong>if I wanted to show the content of a DIV I clicked</strong> in prototype.js, I would use things like <a href="http://www.prototypejs.org/api/event/observe" target="_blank">Event.observe</a>, <a href="http://www.prototypejs.org/api/function/bindAsEventListener" target="_blank">bindAsEventListener</a>, a mix of native DOM element and prototype.js element, and worst of all, an <a href="http://www.prototypejs.org/api">unintelligible documentation</a>.</p>
<p>jQuery as a complete different way of doing it in a single easy-to-understand line :<br />
<em>$(&#8221;#a_div&#8221;).click(function() { alert($(this).text()); });</em>.<br />
As simple as that!</p>
<h3>The problem</h3>
<p>I wanted to use some interface element in Rails that requires prototype.js so I had to have both librairies. The problem is that there&#8217;s a conflict between them. Prototype.js doesn&#8217;t seem to give a damn about it but jQuery is nicer with you. It offers a <a href="http://docs.jquery.com/Core/jQuery.noConflict" target="_blank">noConflict</a> method.</p>
<p><strong>With Rails</strong>, prototype.js is the default librairie so to override this, you could do</p>
<div class="dean_ch" style="white-space: wrap;">
<ol>
<li class="li1">
<div class="de1">&lt;%= javascript_include_tag &quot;prototype&quot;, &quot;jquery&quot; %&gt;
</div>
</li>
<li class="li1">
<div class="de1">&lt;script&gt;$j = jQuery.noConflict();&lt;/script&gt;</div>
</li>
</ol>
</div>
<p>This way, you will have to use <strong>$j</strong> instead of <strong>$</strong> to call jQuery.<strong>$</strong> would still call prototype.</p>
<p>Another thing you could do is to use <a href="http://ennerchi.com/projects/jrails" target="_blank">jQuery on Rails</a> and don&#8217;t give a damn about scriptaculous. I personally prefer to use librairies that are fully tested instead of using a &#8220;by-pass&#8221; that could break my code. It&#8217;s your choice&#8230;</p>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=v6a7y2"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=v6a7y2" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=EfQvdzd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=EfQvdzd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=TDR4mJd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=TDR4mJd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=S22bqRD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=S22bqRD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=9mTUFBd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=9mTUFBd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=l8nV0RD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=l8nV0RD" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/01/28/how-to-have-jquery-and-prototypejs-in-the-same-project/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/01/28/how-to-have-jquery-and-prototypejs-in-the-same-project/</feedburner:origLink></item>
		<item>
		<title>Flot : a new plotting plugin for jQuery</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/220367539/</link>
		<comments>http://www.javascriptkata.com/2008/01/21/flot-a-new-plotting-plugin-for-jquery/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 13:18:01 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[Echo chamber]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[plotting]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/01/21/flot-a-new-plotting-plugin-for-jquery/</guid>
		<description><![CDATA[As you probably know, I&#8217;m a big fan of jQuery because it is more integrated with CSS than scriptaculous. Someone have made a new plotting plugin for jQuery called Flot and this is awesome. The examples are really looking good.
]]></description>
			<content:encoded><![CDATA[<p>As you probably know, I&#8217;m a big fan of <a href="http://jquery.com" target="_blank">jQuery</a> because it is more integrated with CSS than scriptaculous. Someone have made a new plotting plugin for jQuery called <a href="http://code.google.com/p/flot/" target="_blank">Flot</a> and this is awesome. The <a href="http://people.iola.dk/olau/flot/examples/" target="_blank">examples</a> are really looking good.</p>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=m0pvP8"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=m0pvP8" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=mJUtcMd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=mJUtcMd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=X2qbk9d"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=X2qbk9d" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=cAlkS0D"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=cAlkS0D" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=BwQaePd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=BwQaePd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=aNT9cgD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=aNT9cgD" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/01/21/flot-a-new-plotting-plugin-for-jquery/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/01/21/flot-a-new-plotting-plugin-for-jquery/</feedburner:origLink></item>
		<item>
		<title>Intuitive Date Input Selection : a calendar with a special twist</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/217431537/</link>
		<comments>http://www.javascriptkata.com/2008/01/15/intuitive-date-input-selection-a-calendar-with-a-special-twist/#comments</comments>
		<pubDate>Wed, 16 Jan 2008 04:48:50 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[Echo chamber]]></category>

		<category><![CDATA[date picker]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/01/15/intuitive-date-input-selection-a-calendar-with-a-special-twist/</guid>
		<description><![CDATA[If you&#8217;re a javascripter, chances are that you coded an infamous javascript calendar in your life. I saw somewhere that at the moment of his death, an normal javascripter will have coded an average of 7.4 javascript calendar. If we estimate that there is 2.3 million javascripters in the world, it means that there will [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a javascripter, chances are that you coded an infamous javascript calendar in your life. I saw somewhere that <strong>at the moment of his death, an normal javascripter will have coded an average of 7.4 javascript calendar</strong>. If we estimate that there is 2.3 million javascripters in the world, it means that there will be about 1<strong>7 020 000 javascript calendar</strong> when the first generation of javascripter will be extinct. I don&#8217;t remember where I was those numbers but I guess they are accurate&#8230;</p>
<p>Today I will present 13.51% of all the calendars that Nathaniel Brown will have done in his life : <a href="http://datetime.toolbocks.com/" target="_blank">DateTime Toolbocks</a>. But this one has a little twist. Apart being an ugly looking calendar that shows up when you click on an ugly looking icon, it has an <strong>intuitive date input selection</strong>. It means that it parses natural language and transform it into a datetime value. You want to select a date to be <strong>last week</strong>? You simply write <strong>last week</strong> and the date will be <strong>last week</strong>.</p>
<p><img src="http://www.javascriptkata.com/wp-content/uploads/2008/01/calendar.png" alt="Intuitive Date Input Selection" /></p>
<p>But there&#8217;s a lot more of possible (taken from the site)</p>
<ul id="examples">
<li>Today</li>
<li>tod</li>
<li>tomorrow</li>
<li>tom</li>
<li>yesterday</li>
<li>6</li>
<li>6th</li>
<li>6th October</li>
<li>3rd of Feb</li>
<li>10th Feb 2004</li>
<li>14th of Februrary</li>
<li>12 feb</li>
<li>1 ja</li>
<li>mon</li>
<li>Friday</li>
<li>next Friday</li>
<li>next fri</li>
<li>next m</li>
<li>last Monday</li>
<li>last mon</li>
<li>last m</li>
<li>2004-8-8 (ISO)</li>
<li>2004-04-04</li>
<li>1/24/2005 (US)</li>
<li>4/26</li>
<li>10-24-2005</li>
<li>Next Week</li>
<li>Last Year</li>
<li>Next Month</li>
<li>18.11.2004</li>
<li>2 years ago</li>
<li>ten days from now</li>
<li>11 years from today</li>
</ul>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=p9U4RP"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=p9U4RP" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=7iSMxgd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=7iSMxgd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=fybfnHd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=fybfnHd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=GzrM5ED"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=GzrM5ED" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=LkK07Ld"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=LkK07Ld" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=YDrbCLD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=YDrbCLD" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/01/15/intuitive-date-input-selection-a-calendar-with-a-special-twist/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/01/15/intuitive-date-input-selection-a-calendar-with-a-special-twist/</feedburner:origLink></item>
		<item>
		<title>Tips on bookmarklet</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/216392961/</link>
		<comments>http://www.javascriptkata.com/2008/01/14/tips-on-bookmarklet/#comments</comments>
		<pubDate>Mon, 14 Jan 2008 12:01:48 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[Echo chamber]]></category>

		<category><![CDATA[bookmarklet]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/01/14/tips-on-bookmarklet/</guid>
		<description><![CDATA[Gary Haran wrote stuff you should know about bookmarklet and answer the question that's on everybody's lips]]></description>
			<content:encoded><![CDATA[<p>Gary Haran wrote <a href="http://www.garyharan.com/index.php/2008/01/04/cross-browser-bookmarklets-stuff-you-should-know/" target="_blank">stuff you should know about bookmarklet</a> and answer the question that&#8217;s on everybody&#8217;s lips : <strong>what is the maximum number of characters that a bookmarklet can have?</strong> And the answer is&#8230; <strong>508</strong>!</p>
<p>I also wrote a complete article on <a href="http://www.javascriptkata.com/2007/04/19/how-to-do-a-bookmarklet-with-javascript/">how to write a bookmarklet</a>.</p>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=HLa7b4"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=HLa7b4" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=iRCvOqd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=iRCvOqd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=3Ag5eId"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=3Ag5eId" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=zrTFScD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=zrTFScD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=miwRyyd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=miwRyyd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=fPDhrCD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=fPDhrCD" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/01/14/tips-on-bookmarklet/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/01/14/tips-on-bookmarklet/</feedburner:origLink></item>
		<item>
		<title>JavaScript Closures for Dummies</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/214334783/</link>
		<comments>http://www.javascriptkata.com/2008/01/10/javascript-closures-for-dummies/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 11:01:46 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[Echo chamber]]></category>

		<category><![CDATA[closures]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/01/10/javascript-closures-for-dummies/</guid>
		<description><![CDATA[Closures are really powerful in javascript. The problem with them is that a lot of javascripters don&#8217;t understand them well. When I first started working seriously with closures, I had so many questions and no answers&#8230; until I read JavaScript Closures for Dummies. Don&#8217;t be fooled by the &#8220;for dummies&#8221; that could make you think [...]]]></description>
			<content:encoded><![CDATA[<p>Closures are really powerful in javascript. The problem with them is that a lot of javascripters don&#8217;t understand them well. When I first started working seriously with closures, I had so many questions and no answers&#8230; until I read <a href="http://blog.morrisjohns.com/javascript_closures_for_dummies">JavaScript Closures for Dummies</a>. Don&#8217;t be fooled by the &#8220;for dummies&#8221; that could make you think about low-quality information as every &#8220;for dummies&#8221; books. The article of Morris Johns is detailed and precise&#8230; but lenghty. </p>
<p>Don&#8217;t forget to <a href="http://del.icio.us/post?url=http://blog.morrisjohns.com/javascript_closures_for_dummies&#038;title=JavaScript%20closures%20for%20dummies">del.icio.us it</a> and use it as a reference!</p>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=p0OupV"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=p0OupV" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=ykOpk1d"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=ykOpk1d" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=gyn2s9d"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=gyn2s9d" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=Ktj69PD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=Ktj69PD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=8lRhZFd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=8lRhZFd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=GDoVxDD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=GDoVxDD" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/01/10/javascript-closures-for-dummies/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/01/10/javascript-closures-for-dummies/</feedburner:origLink></item>
		<item>
		<title>New on Javascript Kata : the echo chamber</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/213452053/</link>
		<comments>http://www.javascriptkata.com/2008/01/08/new-on-javascript-kata-the-echo-chamber/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 22:55:55 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[white belt]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/01/08/new-on-javascript-kata-the-echo-chamber/</guid>
		<description><![CDATA[Since the beginning of the new year, I&#8217;m offering to javascripters the echo chamber. What is it? It&#8217;s a category where I will post news about what happens in the javascript world. I will try to avoid ajax related news because Ajaxian already does the job really well.
You can subscribe to the RSS feed with [...]]]></description>
			<content:encoded><![CDATA[<p>Since the beginning of the new year, I&#8217;m offering to javascripters the <a href="http://www.javascriptkata.com/category/echo-chamber/">echo chamber</a>. What is it? It&#8217;s <strong>a category where I will post news about what happens in the javascript world</strong>. I will try to avoid ajax related news because <a href="http://ajaxian.com/" target="_blank">Ajaxian</a> already does the job really well.</p>
<p>You can subscribe to the RSS feed with <a href="http://feeds.feedburner.com/JavascriptKata">all the articles</a> or to the RSS feed<a href="http://feeds.feedburner.com/javascriptkata/no_echo_chamber"> without the articles from the echo chamber</a>.</p>
<p>Some may have noticed that I redesigned the site. The <a href='http://www.javascriptkata.com/wp-content/uploads/2008/01/js_old.jpg' title='Javascript Kata - old design'>old design</a> was long overdue and it was a pleasure for my eyes to have a new one.</p>
<p>I would also like to have your <strong>feedback on what you think of the new echo chamber and design</strong>?</p>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=L2ifr0"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=L2ifr0" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=Fq7FTsd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=Fq7FTsd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=X3XacPd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=X3XacPd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=ZMp7MPD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=ZMp7MPD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=z9aVkgd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=z9aVkgd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=lxCbVtD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=lxCbVtD" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/01/08/new-on-javascript-kata-the-echo-chamber/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/01/08/new-on-javascript-kata-the-echo-chamber/</feedburner:origLink></item>
		<item>
		<title>Easy cross-browser compatibility with IE7.js</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/213369436/</link>
		<comments>http://www.javascriptkata.com/2008/01/08/easy-cross-browser-compatibility-with-ie7js/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 19:41:46 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[Echo chamber]]></category>

		<category><![CDATA[ie]]></category>

		<category><![CDATA[librairie]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/01/08/easy-cross-browser-compatibility-with-ie7js/</guid>
		<description><![CDATA[I spent a lot of time testing cross-browser compatibility on the last site I did. My friend Frank of Ruby Fleebie is loosing hours trying to be compatible with Firefox and Internet Explorer. So, when I heard that a simple javascript file could help us in our work, I thought that it would be nice to share it with you.]]></description>
			<content:encoded><![CDATA[<p>I spent a lot of time testing <strong>cross-browser compatibility</strong> on the last site I did. My friend <a href="http://www.rubyfleebie.com/about-me/" target="_blank">Frank of Ruby Fleebie</a> is loosing hours trying to be compatible with Firefox and Internet Explorer. So, when I heard that <strong>a simple javascript file</strong> could help us in our work, I thought that it would be nice to share it with you.</p>
<p>Here it is : <a href="http://dean.edwards.name/weblog/2008/01/ie7-2/" target="_blank">IE7.js version 2.0 (beta)</a>. Check out the <a href="http://ie7-js.googlecode.com/svn/test/index.html" target="_blank">demo page</a> and start having fun again by worrying less with cross-browser compatibility.</p>
<p>I also started the <a href="http://www.dansimard.com/not_tested_in_ie/" target="_blank">Not tested in IE initiative</a>. What is it? It is for developers who don&#8217;t want to test if the page or site displays correctly in Internet ExplorerÂ©. You just add the following logo on your site and you&#8217;re ready to go!</p>
<p><a href="http://www.dansimard.com/not_tested_in_ie/"><img src="http://www.dansimard.com/images/ntiie/not_tested_in_ie_142x50.png" alt="Not tested in IE initiative" /></a></p>
<p>I proudly announce you that <a href="http://www.ihatephp.net/">I hate PHP</a> is the first site that joined the initiative. Look at the bottom of the page for the logo.</p>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=zGnInb"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=zGnInb" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=skuioGd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=skuioGd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=GaPHzTd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=GaPHzTd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=w68nlqD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=w68nlqD" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=5uDoeAd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=5uDoeAd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=dsYGmND"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=dsYGmND" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/01/08/easy-cross-browser-compatibility-with-ie7js/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/01/08/easy-cross-browser-compatibility-with-ie7js/</feedburner:origLink></item>
		<item>
		<title>Tablesorter 2.0 : Simple table sorter with jQuery</title>
		<link>http://feeds.feedburner.com/~r/JavascriptKata/~3/212618466/</link>
		<comments>http://www.javascriptkata.com/2008/01/07/tablesorter-20-simple-table-sorter-with-jquery/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 14:56:01 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
		
		<category><![CDATA[Echo chamber]]></category>

		<category><![CDATA[jquery]]></category>

		<category><![CDATA[plugin]]></category>

		<category><![CDATA[sorting]]></category>

		<guid isPermaLink="false">http://www.javascriptkata.com/2008/01/07/tablesorter-20-simple-table-sorter-with-jquery/</guid>
		<description><![CDATA[Here's something we're always ask : "Can we see the list in the order we want?"]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s something we&#8217;re always ask : &#8220;Can we see the list in the order we want?&#8221; In a programmer&#8217;s language, it means that the client wants to be able to sort a HTML table by clicking on the header row. You have two choices : server-side or client-side. If you choose <strong>server-side</strong>, you&#8217;ll have to query all the data to the DB with a different &#8220;ORDER BY&#8221; clause. That&#8217;s not nice for your DB and your DBA will probably hate you. If you choose client-side, you&#8217;ll have to write A LOT of code. That is not nice for your <a href="http://en.wikipedia.org/wiki/Phalanges" target="_blank">phalanges</a> and they will probably hate you.</p>
<p>God finally sent us a third option : <a href="http://tablesorter.com/docs/" target="_blank">Tablesorter 2.0</a> (a jQuery plugin).</p>
<p>It&#8217;s easy to use and it just works! Take a look at the <a href="http://tablesorter.com/docs/example-option-sort-list.html" target="_blank">simplest example</a> possible and don&#8217;t forget there&#8217;s <a href="http://tablesorter.com/docs/#Demo" target="_blank">a lot more to do</a>.</p>

<p><a href="http://feeds.feedburner.com/~a/JavascriptKata?a=MCOZnw"><img src="http://feeds.feedburner.com/~a/JavascriptKata?i=MCOZnw" border="0"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~f/JavascriptKata?a=HkdfEKd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=HkdfEKd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=OWGwW5d"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=OWGwW5d" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=WSzxJED"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=WSzxJED" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=bpRCBPd"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=bpRCBPd" border="0"></img></a> <a href="http://feeds.feedburner.com/~f/JavascriptKata?a=k4TAfHD"><img src="http://feeds.feedburner.com/~f/JavascriptKata?i=k4TAfHD" border="0"></img></a>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.javascriptkata.com/2008/01/07/tablesorter-20-simple-table-sorter-with-jquery/feed/</wfw:commentRss>
		<feedburner:origLink>http://www.javascriptkata.com/2008/01/07/tablesorter-20-simple-table-sorter-with-jquery/</feedburner:origLink></item>
	</channel>
</rss>
