<?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>J-dee.com &#187; JavaScript</title>
	<atom:link href="http://www.j-dee.com/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.j-dee.com</link>
	<description>Liverpool ASP.NET Developer - C#, jQuery, Js, Rails, SQL, Agile, OOP, Cool Web Tech</description>
	<lastBuildDate>Mon, 04 Oct 2010 21:21:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript parseInt Hilarity</title>
		<link>http://www.j-dee.com/2009/06/03/javascript-parseint-hilarity/</link>
		<comments>http://www.j-dee.com/2009/06/03/javascript-parseint-hilarity/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 14:17:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.j-dee.com/?p=194</guid>
		<description><![CDATA[What do you think this bit of javascript code returns?
parseInt(&#8217;09&#8242;)
My guess is it returns the integer 9 as parseInt() is meant to turn strings to integers. In actual fact it returns zero. Nothing. Nada. It took me a bit of digging to find out why. The reason it returns an unexpected result is one of those [...]]]></description>
			<content:encoded><![CDATA[<p>What do you think this bit of javascript code returns?</p>
<p><strong>parseInt(&#8217;09&#8242;)</strong></p>
<p>My guess is it returns the integer 9 as parseInt() is meant to turn strings to integers. In actual fact it returns zero. Nothing. Nada. It took me a bit of digging to find out why. The reason it returns an unexpected result is one of those situations where the javascript parser attempts to be clever, but gets it wrong. You see parseInt actually has an optional second parameter, called &#8216;radix&#8217;. This specifies the base of the number system to use, and if you dont specify it, the javascript parser makes a &#8216;best guess&#8217;. The rules are:</p>
<ul>
<li>If the supplied value starts with &#8216;0x&#8217; then the parser guesses it to be a hex value.</li>
<li>If it starts with a zero, the parser guesses it is base 8, octal.</li>
<li>Anything else is guessed as decimal.</li>
</ul>
<p>So if we pass in &#8216;09&#8242; without an optional radix, the parser thinks we are working in base 8, and as 9 doesnt exist in octal, it actually returns zero. Strange!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-dee.com/2009/06/03/javascript-parseint-hilarity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TinyMCE &#8211; A Common Sense Configuration</title>
		<link>http://www.j-dee.com/2008/12/30/tinymce-a-common-sense-configuration/</link>
		<comments>http://www.j-dee.com/2008/12/30/tinymce-a-common-sense-configuration/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 15:31:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.j-dee.com/2008/12/30/tinymce-a-common-sense-configuration/</guid>
		<description><![CDATA[TinyMCE is an open source WYSIWYG editor that is pretty popular, and used in many applications including being the editor installed into Wordpress. It&#8217;s small and gets the job done. The only downside is that it&#8217;s a pig to configure and the documentation is of a chocolate fireguard caliber. So here, if anyone wants it, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://tinymce.moxiecode.com/index.php" target="_blank">TinyMCE</a> is an open source WYSIWYG editor that is pretty popular, and used in many applications including being the editor installed into <a href="http://wordpress.org/" target="_blank">Wordpress</a>. It&#8217;s small and gets the job done. The only downside is that it&#8217;s a pig to configure and the documentation is of a chocolate fireguard caliber. So here, if anyone wants it, is a <a href="http://tinymce.moxiecode.com/index.php" target="_blank">TinyMCE</a> configuration block I knocked together that contains all the stuff you need to act as a web based content entry text area. In fact, it&#8217;s an exact clone of the <a href="http://wordpress.org/" target="_blank">Wordpress</a> editor.</p>
<p>&nbsp;&nbsp;&nbsp; &lt;script type=&#8221;text/javascript&#8221;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tinyMCE.init({<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mode: &#8220;textareas&#8221;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theme: &#8220;advanced&#8221;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theme_advanced_toolbar_location: &#8220;top&#8221;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theme_advanced_toolbar_align: &#8220;left&#8221;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theme_advanced_buttons2 : &#8220;&#8221;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theme_advanced_buttons3: &#8220;&#8221;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plugins : &#8220;inlinepopups&#8221;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dialog_type : &#8220;modal&#8221;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theme_advanced_buttons1_add: &#8220;bullist,numlist,blockquote,image,link,unlink,code&nbsp; &#8220;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; theme_advanced_disable: &#8220;formatselect, fontselect, fontsizeselect, styleselect, justifyfull&nbsp; &#8221;
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; });<br />&lt;/script&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-dee.com/2008/12/30/tinymce-a-common-sense-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JQuery Pager Plugin</title>
		<link>http://www.j-dee.com/2008/12/22/jquery-pager-plugin/</link>
		<comments>http://www.j-dee.com/2008/12/22/jquery-pager-plugin/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 14:31:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.j-dee.com/2008/12/22/jquery-pager-plugin/</guid>
		<description><![CDATA[ I&#8217;ve just knocked together a JavaScript pager for use in an application I&#8217;m working on and thought it may be of use to other people. I&#8217;ve therefore converted it to a jQuery plugin and released it under joint MIT and GPL licenses and it is entirely free for you to use or mess about [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="116" alt="jquerypager" src="http://www.j-dee.com/wp-content/uploads/2008/12/jquerypager1.jpg" width="240" align="left" border="0"> I&#8217;ve just knocked together a JavaScript pager for use in an application I&#8217;m working on and thought it may be of use to other people. I&#8217;ve therefore converted it to a jQuery plugin and released it under joint MIT and GPL licenses and it is entirely free for you to use or mess about with. </p>
<p>You can see a demonstration of it in action at <a href="http://jonpauldavies.github.com/JQuery/Pager/PagerDemo.html">http://jonpauldavies.github.com/JQuery/Pager/PagerDemo.html</a> and visit my GitHub repository at <a href="http://github.com/jonpauldavies/jquery-pager-plugin/tree/master">http://github.com/jonpauldavies/jquery-pager-plugin/tree/master</a> to download it.</p>
<p>Usage is very simple indeed. You just give it the number of pages to view, the current page, and a callback method to fire when the pager gets clicked.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-dee.com/2008/12/22/jquery-pager-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Amazon.Com Addiction Continues Unabated&#8230;.</title>
		<link>http://www.j-dee.com/2008/12/10/amazoncom-addiction-continues-unabated/</link>
		<comments>http://www.j-dee.com/2008/12/10/amazoncom-addiction-continues-unabated/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 09:44:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.j-dee.com/2008/12/10/amazoncom-addiction-continues-unabated/</guid>
		<description><![CDATA[ 
  I pay a quick visit to Amazon to get Kitty a few books and before you know it I&#8217;ve dropped an extra 70 quid on 3 JavaScript / JQuery books&#8230;.  
I have not had time to review them fully, but JQuery in Action is a thorough trawl through the functionality and [...]]]></description>
			<content:encoded><![CDATA[<p><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="139" alt="photo" src="http://www.j-dee.com/wp-content/uploads/2008/12/photo1.png" width="240" align="left" border="0" /> </p>
<p>  I pay a quick visit to Amazon to get Kitty a few books and before you know it I&#8217;ve dropped an extra 70 quid on 3 JavaScript / JQuery books&#8230;.  </p>
<p>I have not had time to review them fully, but <a href="http://www.amazon.com/jQuery-Action-Bear-Bibeault/dp/1933988355" target="_blank">JQuery in Action</a> is a thorough trawl through the functionality and use cases of this continually impressive library. I&#8217;ve got a pretty firm grasp of JQuery but my entire knowledge is built from blog posts so felt I needed something a bit more solid and this seems to fit the bill.   </p>
<p>The <a href="http://www.amazon.com/jQuery-Reference-Guide-Comprehensive-Exploration/dp/1847193811/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1228902090&amp;sr=1-1" target="_blank">JQuery Reference</a> is very thin for a technical book and has yet to prove it&#8217;s worth now that we have decent JQuery intellisense in Visual Studio. I&#8217;ll have to wait and see how it pans out.  </p>
<p>Lastly, <a href="http://www.amazon.com/Pro-JavaScript-Techniques-John-Resig/dp/1590597273/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1228902123&amp;sr=1-1" target="_blank">Pro JavaScript Techniques</a> is an overview of the &#8216;modern&#8217; uses of the language, and how it has adopted several OOP paradigms as true client side development has matured in recent years.  <br />If you are thinking of putting any of these on your Christmas list, I&#8217;d order them JQuery in Action, Pro JavaScript Techniques and The JQuery Reference &#8211; in order of usefulness.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.j-dee.com/2008/12/10/amazoncom-addiction-continues-unabated/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

