<?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"
	>

<channel>
	<title>The Resident Code Monkey</title>
	<atom:link href="http://residentcodemonkey.stechusa.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://residentcodemonkey.stechusa.com</link>
	<description>Tips, rants, tutorials, and more from the resident code monkey.</description>
	<pubDate>Wed, 11 Jul 2007 20:37:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>jQuery - the lightweight and powerful javascript library</title>
		<link>http://residentcodemonkey.stechusa.com/2007/07/11/jquery-the-lightweight-and-powerful-javascript-library/</link>
		<comments>http://residentcodemonkey.stechusa.com/2007/07/11/jquery-the-lightweight-and-powerful-javascript-library/#comments</comments>
		<pubDate>Wed, 11 Jul 2007 20:37:20 +0000</pubDate>
		<dc:creator>Resident Code Monkey</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://residentcodemonkey.stechusa.com/2007/07/11/jquery-the-lightweight-and-powerful-javascript-library/</guid>
		<description><![CDATA[If you have been following up with the new developments in javascript over the last year or two, then chances are you have heard of the Prototype, script.aculo.us, or MooTools javascript libraries.
These javascript libraries allow you to add special effects (fading text, drag-and-drop boxes, to name a few) to elements on your web page, as [...]]]></description>
			<content:encoded><![CDATA[<p>If you have been following up with the new developments in javascript over the last year or two, then chances are you have heard of the <em>Prototype</em>, <em>script.aculo.us</em>, or <em>MooTools</em> javascript libraries.</p>
<p>These javascript libraries allow you to add special effects (fading text, drag-and-drop boxes, to name a few) to elements on your web page, as well as enhance the way you can make <abbr title="Asynchronous Javascript and XML"><span title="Asynchronous Javascript and XML">AJAX</span></abbr> requests.</p>
<p>I stayed away from these libraries because I had heard that <em>Prototype</em>, and <em>script.aculo.us</em> really degraded the performance of your web page. I am not very patient when waiting for a web page to load and do not expect people visiting my web site / project to be either.</p>
<p>However when planning a recent project I started working on, I was browsing <a href="http://www.digg.com" title="Digg" target="_blank">Digg</a> and came across an <a href="http://digg.com/programming/jQuery_1_1_3_800_Faster_still_20KB" target="_blank" title="jQuery 1.1.3 800% Faster, Still 20KB">article</a> for the then latest <a href="http://www.jquery.com" title="jQuery" target="_blank">jQuery</a> 1.1.3 release which boasted that it had the best performance in <em>Internet Explorer</em>, with moderate performance in <em>FireFox</em> and <em>Safari</em>.</p>
<p>Impressed by this I decided I would try it out and see if I could integrate some <abbr title="Asynchronous Javascript and XML"><span title="Asynchronous Javascript and XML">AJAX</span></abbr> and highlighting effects into the project I was working on.</p>
<p>I can definitely say that I am thoroughly impressed with the ease in which you can use <em>jQuery</em>, in less then two days I had <abbr title="Asynchronous Javascript and XML"><span title="Asynchronous Javascript and XML">AJAX</span></abbr> and highlighting effects fully integrated into my project. You can not even notice any performance degradation, the pages run very fast.</p>
<p>Although I love this, I think I am addicted to the chaining that you can have in <e>jQuery</em>. Where you would normally have a bunch of different declarations to modify an element, you can apply a bunch of changes to a single element in a chain like so:</p>
<div class="dean_ch" style="white-space: wrap;">$<span class="br0">&#40;</span><span class="st0">&quot;#modified-id&quot;</span><span class="br0">&#41;</span><br />
.<span class="me1">mouseover</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> $<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">addClass</span><span class="br0">&#40;</span><span class="st0">&#8216;hover&#8217;</span><span class="br0">&#41;</span>; <span class="br0">&#125;</span><span class="br0">&#41;</span><br />
.<span class="me1">mouseout</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span> $<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">removeClass</span><span class="br0">&#40;</span><span class="st0">&#8216;hover&#8217;</span><span class="br0">&#41;</span>; <span class="br0">&#125;</span><span class="br0">&#41;</span>;</div>
<p>The <em>jQuery</em> library itself takes up around 20kb (compressed version) so that is not such a huge bandwidth increase. jQuery can also run alongside <em>Prototype</em>, and <em>script.aculo.us</em>, so if you need those libraries you can enjoy the benefits of both libraries.</p>
<p>There is a huge amount of <a href="http://www.jquery.com/plugins" title="jQuery plugins" target="_blank">plugins</a> available already for jQuery, not to mention it is very easy for you to write your own.</p>
<p>All in all I find <em>jQuery</em> very pleasant and powerful to use.</p>
<p>Read more about <a href="http://www.jquery.com" title="jQuery" target="_blank">jQuery</a>.</p>
<p>Until next time,<br />
-ResidentCodeMonkey</p>
]]></content:encoded>
			<wfw:commentRss>http://residentcodemonkey.stechusa.com/2007/07/11/jquery-the-lightweight-and-powerful-javascript-library/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Choosing the right HTML editor to suit your Style of Coding</title>
		<link>http://residentcodemonkey.stechusa.com/2007/03/26/choosing-the-right-html-editor-to-suit-your-style-of-coding/</link>
		<comments>http://residentcodemonkey.stechusa.com/2007/03/26/choosing-the-right-html-editor-to-suit-your-style-of-coding/#comments</comments>
		<pubDate>Tue, 27 Mar 2007 01:29:48 +0000</pubDate>
		<dc:creator>Resident Code Monkey</dc:creator>
		
		<category><![CDATA[General]]></category>

		<category><![CDATA[HTML]]></category>

		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://residentcodemonkey.stechusa.com/2007/03/26/choosing-the-right-html-editor-to-suit-your-style-of-coding/</guid>
		<description><![CDATA[The editor you decide to use depends on your coding style, some people like editors such as Notepad, which have no over the top drag-and-drop features and you have to hand code everything, while some people like to use Integrated Development Environment (IDE) editors such as Macromedia DreamWeaver or Zend Studio to do their work, as they find it easier to drag-and-drop and don't require the ability to fine tune the code they write.

A list of editors that you could try out include the following..]]></description>
			<content:encoded><![CDATA[<p>The editor you decide to use depends on your coding style, some people like editors such as Notepad, which have no over the top drag-and-drop features and you have to hand code everything, while some people like to use Integrated Development Environment (IDE) editors such as Macromedia DreamWeaver or Zend Studio to do their work, as they find it easier to drag-and-drop and don&#8217;t require the ability to fine tune the code they write.</p>
<p>A list of editors that you could try out include the following:</p>
<p><a href="http://www.adobe.com/products/dreamweaver/" title="Macromedia DreamWeaver" target="_blank">Macromedia DreamWeaver</a> - Runs on Windows, and Mac.<br />
<a href="http://www.microsoft.com/frontpage/" title="Microsoft Frontpage" target="_blank">Microsoft Frontpage</a> - Runs on Windows.<br />
<a href="http://www.zend.com/products/zend_studio" title="Zend Studio" target="_blank">Zend Studio</a> - Written in Java, and available for Windows, Linux, and Mac.<br />
Notepad - Comes with Windows.<br />
<a href="http://notepad-plus.sourceforge.net/" title="Notepad++" target="_blank">Notepad++</a> <em>(My editor of choice)</em> - Runs on Windows, source code is available.</p>
<p>After trying all of the above editors I found my personal choice was Notepad++, which is pretty light-weight, has a really fast load up time, is not written on top of a java base, and is not too over the top that it just gets the job done.</p>
<p>I encourage those who like to hand code everything to try out Notepad++, after a little while you might be wondering how you could have ever coded without using it.</p>
<p>Try out the editors on the list, and find out which one is for you.</p>
<p>I am also open to suggestions for editors to add to the list, so send in your favorite editor of choice.</p>
<p>Until next time.<br />
-ResidentCodeMonkey</p>
]]></content:encoded>
			<wfw:commentRss>http://residentcodemonkey.stechusa.com/2007/03/26/choosing-the-right-html-editor-to-suit-your-style-of-coding/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to change the background color of your pages in HTML and CSS</title>
		<link>http://residentcodemonkey.stechusa.com/2007/03/19/how-to-change-the-background-color-of-your-pages-in-html-and-css/</link>
		<comments>http://residentcodemonkey.stechusa.com/2007/03/19/how-to-change-the-background-color-of-your-pages-in-html-and-css/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 02:26:35 +0000</pubDate>
		<dc:creator>Resident Code Monkey</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[HTML]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://residentcodemonkey.stechusa.com/2007/03/19/how-to-change-the-background-color-of-your-pages-in-html-and-css/</guid>
		<description><![CDATA[This tutorial is geared to help you get to know how to change the background color of your web page, using both the traditional HTML approach, and the new improved <em>CSS</em> approach.

If you wanted to change the background of the web page to black (hex color code #000000) with traditional HTML you would use the following code to accomplish that..]]></description>
			<content:encoded><![CDATA[<p>This tutorial is geared to help you get to know how to change the background color of your web page, using both the traditional HTML approach, and the new improved <em>CSS</em> approach.</p>
<p>Level of Difficulty: <strong>Beginner</strong></p>
<p>If you wanted to change the background of the web page to black (hex color code #000000) with traditional HTML you would use the following code to accomplish that:</p>
<div class="dean_ch" style="white-space: wrap;">&lt;body background=&quot;#000000&quot;&gt;</div>
<p>This method however is outdated, because what if you had 20 or 30 web pages with this code and later on after you had developed all your web pages you decided to change the background color to grey (hex color code #CCCCCC), you would have to go and edit all those pages over again and replace #000000 with #CCCCCC. There is another way you could do this where you could make one change and have all your pages update, this method is the <em>Cascading Style Sheet (CSS)</em> method.</p>
<p>It makes sense to store your <em>CSS</em> in a file you can include on each page, so for this tutorial we will be storing our <em>CSS</em> in a file called stylesheet.css.</p>
<p>In order to change the background color of each page we include the CSS style sheet file on, we would put the following code in the style sheet file.</p>
<div class="dean_ch" style="white-space: wrap;">
body {<br />
&nbsp; &nbsp; &nbsp;background-color: #000000;<br />
}</div>
<p>And then include the style sheet file on each page by using the following code, which you would place in the &lt;head&gt; portion of your web page.</p>
<div class="dean_ch" style="white-space: wrap;">&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;stylesheet.css&quot; media=&quot;all&quot;&gt;</div>
<p>So now by using this <em>CSS</em> method you can just open up the stylesheet.css file, and edit the hex color code for black (#000000) and change it to grey (#CCCCCC) and the change would occur on all the pages you have included the <em>CSS</em> style sheet file on, thus making your life much easier in the long run.</p>
<p>There are many things you can change on a web page by using <em>Cascading Style Sheets</em>, I encourage you to read up more on the subject, I will also be writing more tutorials on how you can use <em>CSS</em> to change the way your website looks.</p>
<p>Until next time,<br />
-Resident Code Monkey</p>
]]></content:encoded>
			<wfw:commentRss>http://residentcodemonkey.stechusa.com/2007/03/19/how-to-change-the-background-color-of-your-pages-in-html-and-css/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Solving the IE Flash Click to activate problem.</title>
		<link>http://residentcodemonkey.stechusa.com/2007/03/19/solving-the-ie-flash-click-to-activate-problem/</link>
		<comments>http://residentcodemonkey.stechusa.com/2007/03/19/solving-the-ie-flash-click-to-activate-problem/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 05:19:41 +0000</pubDate>
		<dc:creator>Resident Code Monkey</dc:creator>
		
		<category><![CDATA[HTML]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://residentcodemonkey.stechusa.com/2007/03/19/solving-the-ie-flash-click-to-activate-problem/</guid>
		<description><![CDATA[So you have developed this great flash movie that you took your time to perfect, and come time to embed it on your website you find that it works perfectly in FireFox but not Internet Explorer, which requires end-users to first click on the flash movie to activate or gain focus and then you are able to continue as usual.

You followed the procedure that you have always used, you stare in disbelief the &#60;object&#62; and &#60;embed&#62; tags have never failed you, but all of a sudden these methods do not work anymore..]]></description>
			<content:encoded><![CDATA[<p>So you have developed this great flash movie that you took your time to perfect, and come time to embed it on your website you find that it works perfectly in FireFox but not Internet Explorer, which requires end-users to first click on the flash movie to activate or gain focus and then you are able to continue as usual.</p>
<p>You followed the procedure that you have always used, you stare in disbelief the <em>&lt;object&gt;</em> and <em>&lt;embed&gt;</em> tags have never failed you, but all of a sudden these methods do not work anymore.</p>
<p>Due to legal action, Microsoft has begun to require the end-user to click once on a flash movie to activate it, before the user is able to interact with the flash movie.</p>
<p>Fortunately there is a way to continue to use them by inserting them dynamically via JavaScript, by using <em>document.write</em> or <em>SWFObject. A</em>s I will you show you, it is not that hard to implement either method plus they both validate according to the W3C (X)HTML validators.</p>
<p>Let us see how you would use the JavaScript <em>document.write</em> method to dynamically insert the Flash code during page load. You would place the following code where you want the flash movie to go.</p>
<div class="dean_ch" style="white-space: wrap;">
&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;&gt;<br />
document.write(&#8217;&lt;object classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; codebase=&quot;http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0&quot; width=&quot;700&quot; height=&quot;200&quot; id=&quot;flashMovie&quot; align=&quot;middle&quot;&gt;<br />
&lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot;&gt;&lt;/param&gt;<br />
&lt;param name=&quot;movie&quot; value=&quot;movie.swf&quot;&gt;&lt;/param&gt;<br />
&lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;&lt;/param&gt;<br />
&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot;&gt;&lt;/param&gt;<br />
&lt;embed src=&quot;movie.swf&quot; mce_src=&quot;movie.swf&quot; quality=&quot;high&quot; bgcolor=&quot;#FFFFFF&quot; width=&quot;700&quot; height=&quot;200&quot; name=&quot;flashMovie&quot; align=&quot;middle&quot; allowScriptAccess=&quot;sameDomain&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot;&gt;&lt;/embed&gt;<br />
&lt;/object&gt;&#8217;);<br />
&lt;/script&gt;</div>
<p>The above code would embed a flash movie called movie.swf with the size of 700 x 200 pixels, and a background color of white (#FFFFFF) on the fly, and best of all it does not require your end-users to click to activate the flash movie.</p>
<p>If you are happy with using that method, and having to type all that code out each time feel free to continue using it, otherwise I&#8217;ll show you another method you can use, that is easier to remember and has less code to type per each flash movie.</p>
<p>That method is the <em>SWFObject</em> JavaScript library so lets have a look at how we would implement it. First of all because <em>SWFObject</em> is a JavaScript library you have to download it to your website and then load it on each page you wish to use it on before you can actually do anything with it.</p>
<p>So surf over to <a target="_blank" href="http://blog.deconcept.com/swfobject/">http://blog.deconcept.com/swfobject/</a> and grab the latest copy of <em>SWFObject</em> and save it as swfobject.js, and then we can see how to implement it.</p>
<div class="dean_ch" style="white-space: wrap;">&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot; src=&quot;swfobject.js&quot;&gt;&lt;/script&gt;</div>
<p>The code above you should put between the &lt;head&gt; tag of your page, as it loads the <em>SWFObject</em> JavaScript library for us to be able to use. The next piece of code you will want to place where you want your flash movie to go.</p>
<div class="dean_ch" style="white-space: wrap;">
&lt;div id=&quot;flashContent&quot;&gt;This text will be replaced by the Flash movie.&lt;/div&gt;</p>
<p>&lt;script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;&gt;<br />
var swfobject = new SWFObject(&quot;movie.swf&quot;, &quot;flashMovie&quot;, &quot;700&quot;, &quot;200&quot;, &quot;7&quot;, &quot;#FFFFFF&quot;); <br />
swfobject.write(&quot;flashContent&quot;);<br />
&lt;/script&gt;</div>
<p>The above code will do the same thing as the <em>document.write</em> method, but is easier to implement and read, it also writes out all the code needed for each different browser, and has a smaller load footprint.</p>
<p>The minimum syntax of <em>SWFObject</em> is:</p>
<div class="dean_ch" style="white-space: wrap;">var swfobject = new SWFObject(swf, id, width, height, version, background-color);</div>
<p>There are many other options you can use for your <em>SWFObject</em> implementation, over at <a target="_blank" href="http://blog.deconcept.com/swfobject/">http://blog.deconcept.com/swfobject/</a> you can view them as well as extra examples.</p>
<p>I hope this has jump started you on your way to embedding flash movies that load smoothly for the end-user, as well as helped you gain some knowledge of how JavaScript can help with hurdles you may come up against.</p>
<p>Until next time,<br />
-Resident Code Monkey</p>
]]></content:encoded>
			<wfw:commentRss>http://residentcodemonkey.stechusa.com/2007/03/19/solving-the-ie-flash-click-to-activate-problem/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Welcome to The Resident Code Monkey&#8217;s Corner</title>
		<link>http://residentcodemonkey.stechusa.com/2007/03/18/welcome-to-the-resident-code-monkeys-corner/</link>
		<comments>http://residentcodemonkey.stechusa.com/2007/03/18/welcome-to-the-resident-code-monkeys-corner/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 01:14:43 +0000</pubDate>
		<dc:creator>Resident Code Monkey</dc:creator>
		
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://residentcodemonkey.stechusa.com/2007/03/18/welcome-to-the-resident-code-monkeys-corner/</guid>
		<description><![CDATA[Hello and Welcome,

I'll be posting random tips, tutorials, and rants here.

Stay tuned.
-Resident Code Monkey]]></description>
			<content:encoded><![CDATA[<p>Hello and Welcome,</p>
<p>I&#8217;ll be posting random tips, tutorials, and rants here.</p>
<p>Stay tuned.<br />
-Resident Code Monkey</p>
]]></content:encoded>
			<wfw:commentRss>http://residentcodemonkey.stechusa.com/2007/03/18/welcome-to-the-resident-code-monkeys-corner/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
