<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><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: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/" version="2.0">

<channel>
	<title>Marion Dorsett's FigmentThinking.com</title>
	
	<link>http://www.figmentthinking.com</link>
	<description>Learn how to write better code. Simple techniques to produce faster results and save you time.</description>
	<lastBuildDate>Thu, 25 Mar 2010 19:04:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/figmentthinking/zYJH" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="figmentthinking/zyjh" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">figmentthinking/zYJH</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How To See Your Hidden Content In Dreamweaver</title>
		<link>http://www.figmentthinking.com/2010/03/25/how-to-see-your-hidden-content-in-dreamweaver/</link>
		<comments>http://www.figmentthinking.com/2010/03/25/how-to-see-your-hidden-content-in-dreamweaver/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 19:04:16 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/?p=292</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/css-icon.png" width="32" height="32" alt="" title="CSS" /><img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/xhtml-icon.png" width="32" height="32" alt="" title="HTML" /><img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><br/>Here&#8217;s a simple little trick to allow you to see your hidden content on your web pages from your WYSIWYG editor. Setup the file to use jQuery, and then add a little code snippet like this: 1 2 3 4 5 6 7 8 &#60;script type=&#34;text/javascript&#34;&#62; // &#60;![CDATA[ $&#40;'.displayNone'&#41;.each&#40;function&#40;e&#41; &#123; $&#40;this&#41;.attr&#40;'style', 'display:none;'&#41;; &#125;&#41;; // ]]&#62; [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/css-icon.png" width="32" height="32" alt="" title="CSS" /><img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/xhtml-icon.png" width="32" height="32" alt="" title="HTML" /><img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><br/><p>Here&#8217;s a simple little trick to allow you to see your hidden content on your web pages from your WYSIWYG editor.<br />
<span id="more-292"></span><br />
Setup the file to use jQuery, and then add a little code snippet like this:</p>

<div class="wp_codebox"><table><tr id="p2922"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code" id="p292code2"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #006600; font-style: italic;">// &lt;![CDATA[</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.displayNone'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'style'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'display:none;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// ]]&gt;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>This will then look for each element that has the class=&#8221;displayNone&#8221; and add the style attribute with `display:none` to it, accomplishing the task of hiding all the elements you want hidden on your page.  WYSIWYG editor like Dreamweaver won&#8217;t render the JavaScript and you can still see the content and edit the copy as needed quite easily.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2010/03/25/how-to-see-your-hidden-content-in-dreamweaver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Include JavaScript Files with JavaScript</title>
		<link>http://www.figmentthinking.com/2010/01/14/including-javascript-files-with-javascript/</link>
		<comments>http://www.figmentthinking.com/2010/01/14/including-javascript-files-with-javascript/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 06:02:32 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/?p=275</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><br/>As always, I&#8217;m constantly looking for ways to speed up my coding, to keep files scalable and manageable. Here&#8217;s a tip that will let you `import` your external JavaScript files much like you would `import` your external CSS files (, but that&#8217;s different post.) No, we can&#8217;t literally import our JavaScript like CSS, but the [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><br/><p>As always, I&#8217;m constantly looking for ways to speed up my coding, to keep files scalable and manageable.  Here&#8217;s a tip that will let you `import` your external JavaScript files much like you would `import` your external CSS files (, but that&#8217;s different post.)</p>
<p>No, we can&#8217;t literally import our JavaScript like CSS, but the concept is the same.  We can link to one JavaScript file and have it include additional JavaScript files for us, and here&#8217;s how we do that.<br />
<span id="more-275"></span><br />
Create a file called `import.js`, and call the import.js file as your first &lt;script&gt; tag in the &lt;head&gt;.  Copy the code below and paste it inside of the import.js file.</p>

<div class="wp_codebox"><table><tr id="p2755"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code" id="p275code5"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> incScripts <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ft_validate.js'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'swfobject.js'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'jquery.js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> allScripts <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'script'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>s<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> s<span style="color: #339933;">&lt;=</span><span style="color: #009900;">&#40;</span>allScripts.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> s<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> scriptPath <span style="color: #339933;">=</span> allScripts<span style="color: #009900;">&#91;</span>s<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'src'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>scriptPath.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'import.js'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		scriptURI <span style="color: #339933;">=</span> scriptPath.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/import.js/gi</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;=</span><span style="color: #009900;">&#40;</span>incScripts.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> document.<span style="color: #000066; font-weight: bold;">write</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;script type=&quot;text/javascript&quot; src=&quot;'</span> <span style="color: #339933;">+</span> scriptURI <span style="color: #339933;">+</span> incScripts<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&quot;&gt;&lt;/scr'</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'ipt&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
		<span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>On line 1 change the JavaScript file names to those you want to include in the web page using our new import.js file.  These files are assumed to be in the same folder as import.js.</p>
<p><strong>Note:</strong> <em>If you want to include a JavaScript file in another folder just make sure you add the missing path data with the file name relative to the location of the import.js file.  So if you need to include a file in the folder above your incScripts may have a value like this:</em></p>

<div class="wp_codebox"><table><tr id="p2756"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p275code6"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> incScripts <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'../ft_validate.js'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'swfobject.js'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'jquery.js'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>I tested this in MSIE, Firefox, Chrome &#038; Safari (all windows), and didn&#8217;t have any problems w/ any of the browsers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2010/01/14/including-javascript-files-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Walter Zorn’s ToolTip with a JQuery Twist</title>
		<link>http://www.figmentthinking.com/2009/12/08/walter-zorns-tooltip-with-a-jquery-twist/</link>
		<comments>http://www.figmentthinking.com/2009/12/08/walter-zorns-tooltip-with-a-jquery-twist/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 13:33:30 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/?p=248</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><br/>If you&#8217;ve ever done a search on Google for &#8220;javascript tooltip&#8220;, you&#8217;ve probably come across Walter Zorn&#8217;s DHTML JavaScript Tooltips.  As I write this Walter&#8217;s web site comes up as the first result out of 1,490,000.  I don&#8217;t know Walter, and I doubt I&#8217;ll ever have the chance to actually meet him, but if you&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><br/><p>If you&#8217;ve ever done a search on Google for &#8220;<a href="http://www.google.com/search?q=javascript+tooltip" target="_blank">javascript tooltip</a>&#8220;, you&#8217;ve probably come across <a href="http://www.walterzorn.com/tooltip/tooltip_e.htm" target="_blank">Walter Zorn&#8217;s DHTML JavaScript Tooltips</a>.  As I write this Walter&#8217;s web site comes up as the first result out of 1,490,000.  I don&#8217;t know Walter, and I doubt I&#8217;ll ever have the chance to actually meet him, but if you&#8217;re looking for a JavaScript tooltip, his script is the one to use.</p>
<p>Now for those of you saying, &#8220;I want one that works with JQuery!&#8221;, hold your horses.  No, Walter&#8217;s script isn&#8217;t a nifty little JQuery plugin, but that&#8217;s the best part, it doesn&#8217;t have to be.  The WZ Tooltip script can be used with or with out JQuery, and it works the same and just as good under either circumstance.   I know you&#8217;re saying stop rambling and tell me how to use it with JQuery&#8230;.<br />
<span id="more-248"></span><br />
Setup both JQuery and wz_tooltip according to their instructions, they&#8217;re both really clear on how to set them up, and make sure you have the <a href="http://www.walterzorn.com/tooltip/extensions.htm" target="_blank">tip_balloon extension</a> to.   Save yourself some time, and confirm they&#8217;re both working properly, then take the following steps to marry JQuery with wz_tooltip.</p>
<p>Setup your tool tips as hidden &lt;div&gt;s, and give each one of them a unique ID.</p>
<p>&lt;div id=&#8221;tip1&#8243; style=&#8221;display: none;&#8221;&gt;This is my tool tip copy.&lt;/div&gt;</p>
<p>In your &lt;a&gt; tags that will trigger the tooltip, add the class attribute and the rel attribute:</p>
<p>class=&#8221;toolTip&#8221; rel=&#8221;tip1&#8243;</p>
<p>&#8230; the class attribute remains the same, but obviously, you&#8217;ll want to change the rel attribute to match the ID of the corresponding tooltip.</p>
<p>After you&#8217;ve added your tool</p>

<div class="wp_codebox"><table><tr id="p2488"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p248code8"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #006600; font-style: italic;">// &lt;![CDATA[</span>
$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #006600; font-style: italic;">// Add wz_tooltips automatically</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.toolTip&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
getTipById <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'rel'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// Look for rel attribute first &amp;lt;a&amp;gt; tags only</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>getTipById<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>getTipById <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'_'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #006600; font-style: italic;">// use id attribute if it's not found any other tag, but must be prefixed with _ and match tool tip text</span>
toolTipText <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#&quot;</span> <span style="color: #339933;">+</span> getTipById<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// get html from id</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>toolTipText<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> Tip<span style="color: #009900;">&#40;</span>toolTipText<span style="color: #339933;">,</span> BALLOON<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #006600; font-style: italic;">// show tool tip if copy was found</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// Untip Links automatically</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.toolTip&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseout</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> UnTip<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #006600; font-style: italic;">// ]]&gt;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>I know you&#8217;re thinking, &#8220;But I dont&#8217; want to use this on an &lt;a&gt; tag!&#8221;  Then don&#8217;t.  Add the toolTip class and add an ID to the tag you want to use this with, just add an &#8220;_&#8221; underscore to the beginning of the ID, and you&#8217;re all set.</p>
<p>Thanks for the great script Walter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2009/12/08/walter-zorns-tooltip-with-a-jquery-twist/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>JQuery JavaScript Library</title>
		<link>http://www.figmentthinking.com/2009/04/02/jquery-javascript-library/</link>
		<comments>http://www.figmentthinking.com/2009/04/02/jquery-javascript-library/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 04:11:27 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/?p=245</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><br/>Before I learned PHP, I used JavaScript a lot, and after learning PHP, I eased up on using JavaScript due to the amount of time it took for me to integrate the PHP output with the JavaScript.  As a result my web applications functioned, but without any flair.  Despite the dynamics added by PHP, they [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><br/><p>Before I learned PHP, I used JavaScript a lot, and after learning PHP, I eased up on using JavaScript due to the amount of time it took for me to integrate the PHP output with the JavaScript.  As a result my web applications functioned, but without any flair.  Despite the dynamics added by PHP, they were still very much `static` in appearance.  JQuery however, has revived my use of JavaScript, and has lived up to it&#8217;s promise of `Write Less, Do Nore`.<span id="more-245"></span></p>
<p>My friend and colleague <a title="Visit Andy Sowards.com" href="http://www.AndySowards.com?source=figmentthinking.com" target="_blank">Andy Sowards</a> came across the JQuery library and introduced me to it.  I&#8217;m now very much addicted to the genius behind the JQuery code libarary and I know use it on a daily basis.</p>
<p>The core JQuery code is adequate by itself, however, much like WordPress, JQuery&#8217;s real power lies is due to the plugins that are available for it.  If you need a JavaScript to perform a specific task for you, then chances are that someone has written a JQuery plugin for it, or it can be accomplished by using the core JQuery code itself.</p>
<p>Don&#8217;t take my word for it, take a look at JQuery for yourself, and see just how much more you can accomplish, and how much less you have to write to make it happen.</p>
<p><a href="http://jquery.com/" target="_blank">JQuery &#8211; Write Less, Do More</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2009/04/02/jquery-javascript-library/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Process Your PHP Form POSTs Faster.</title>
		<link>http://www.figmentthinking.com/2008/04/23/process-your-php-form-posts-faster/</link>
		<comments>http://www.figmentthinking.com/2008/04/23/process-your-php-form-posts-faster/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 03:33:39 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/?p=43</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/>The Scenario: You setup a contact form for people to send you email.  When the form is submitted, you want to assign each of the POST, GET or REQUEST values to a variable with the same name as the key. (You could do this for a number of reasons, but that&#8217;s a different topic.) The [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/><p><strong>The Scenario:</strong></p>
<p>You setup a contact form for people to send you email.  When the form is submitted, you want to assign each of the POST, GET or REQUEST values to a variable with the same name as the key. (You could do this for a number of reasons, but that&#8217;s a different topic.)</p>
<p><strong>The Problem:</strong></p>
<p>Ugh! Doing this can be really time consuming, especially if you have a really long form.  Presonally, I would just use the array element vs. setting creating a new variable, but if you must, I suggest using a foreach() loop to create the variables for you.</p>
<p><strong>The Solution:</strong><span id="more-43"></span><br />
Sample form:</p>

<div class="wp_codebox"><table><tr id="p4311"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p43code11"><pre class="html" style="font-family:monospace;">&lt;form&gt;Email:
&lt;input name=&quot;email&quot; type=&quot;text&quot; /&gt;
&lt;input type=&quot;submit&quot; /&gt;
&lt;/form&gt;</pre></td></tr></table></div>

<p>When the form is submitted, use a loop and a variable variable to do the job for you.</p>

<div class="wp_codebox"><table><tr id="p4312"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p43code12"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/is_array"><span style="color: #990000;">is_array</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$$key</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$value</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// create variable name from key  </span>
&nbsp;
        <span style="color: #666666; font-style: italic;">/*
        Assuming `email` was the key, the above would
        create a new variable called $email
        */</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// end foreach</span>
<span style="color: #009900;">&#125;</span> <span style="color: #666666; font-style: italic;">// end if</span>
<span style="color: #666666; font-style: italic;"># Process your code here calling each new var
</span><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$email</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2008/04/23/process-your-php-form-posts-faster/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Power of CSS For Design</title>
		<link>http://www.figmentthinking.com/2007/12/20/the-power-of-css-for-design/</link>
		<comments>http://www.figmentthinking.com/2007/12/20/the-power-of-css-for-design/#comments</comments>
		<pubDate>Fri, 21 Dec 2007 04:51:59 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/web-development/the-power-of-css-for-design/</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/css-icon.png" width="32" height="32" alt="" title="CSS" /><img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/xhtml-icon.png" width="32" height="32" alt="" title="HTML" /><br/>By trade I&#8217;m not a designer, I&#8217;m a programmer. There is a definite dichotomy between programming and design, however, the design layout still needs to be coded in a logical manner to make it scalable for easier maintenance in the future. Simply put, the more complex the design, the more time and care needs to [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/css-icon.png" width="32" height="32" alt="" title="CSS" /><img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/xhtml-icon.png" width="32" height="32" alt="" title="HTML" /><br/><p>By trade I&#8217;m not a designer, I&#8217;m a programmer.  There is a definite dichotomy between programming and design, however, the design layout still needs to be coded in a logical manner to make it scalable for easier maintenance in the future.  Simply put, the more complex the design, the more time and care needs to be put into the planning of the design, but it doesn&#8217;t mean that the code has to be more complicated.<br />
<span id="more-41"></span></p>
<p>For those of you who may be eager to &#8220;think&#8221; ahead and think I&#8217;m about to rant on using pure CSS for page layout and tell you to stop using tables, you&#8217;re wrong.  If you want to use tables, or CSS to layout your pages, then by all means do so, but what ever method you choose to layout your page designs, keep in mind that CSS if very powerful and to overlook it can be costly, especially if you&#8217;re trading time for money.</p>
<p>Let&#8217;s take a simple concept I want to make a web site, but it will have 3 distinct sections, we&#8217;ll call them Alpha, Beta and Cappa.  I want a cohesive look and feel for each section, but I want each section to be unique and easily identifiable when viewing the different pages.  Alpha will be red, Beta will be blue and Cappa, green.</p>
<p>What I&#8217;ve experienced is that the design adept will set out to build 3 templates based on the same code, but each will define the color base for the 3 sections of the site.  AHHHHH!  Why?  Just in case you don&#8217;t understand the question, I&#8217;ll make it more wordy&#8230; Why would you want to build 3 templates instead of building 1 template and 3 style sheets?</p>
<p>Let&#8217;s have a quick review of what CSS is and how it works. &#8220;Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.&#8217;,as quoted by the W3C [http://www.w3.org/Style/CSS/]  Notice in the W3C&#8217;s example the second thing they mention is color.</p>
<p>Logical thought no. 1: Create a different style sheet for each color.  Sticking with our example we can create a style sheet for red, blue and green.</p>
<p>Will will also need to address the styles for fonts, spacing and etc, also mentioned in the W3C&#8217;s statement of CSS.  In the vein of &#8220;Work smarter not harder.&#8221;, we need to determine which section of our website will have the most pages.  Because I&#8217;m writing the article, I say Alpha will have the most pages, and so we&#8217;ll declare that red will be our default color scheme.</p>
<p>Logical thought no. 2: To ensure that all pages will have the proper design, style and format, our default style sheet will assume that every page is going to be red.  All pages in Beta will have the blue style sheet added to it, and all in Cappa will have the green style sheet applied to it.</p>
<p>From here on out, the logic starts to become design specific, and you&#8217;ll simply have to do your best.  Whether you decide to go with tables or a pure CSS layout, what ever you decide, don&#8217;t stop thinking about how you can improve and reduce your work load.</p>
<p>This is where we separate the &#8220;Ah-Ha!&#8221;&#8216;s from the &#8220;huh&#8221;&#8216;s.  If you understand CSS, and I&#8217;ve conveyed my thoughts clearly, you should be able to understand exactly what needs to happen.  You may not fully understand or know how, but you should be able to see the bigger picture and the power of CSS.  If you&#8217;re completely lost and clueless, either I&#8217;ve done a horrible job of conveying my thoughts or you simply don&#8217;t understand the power of css.</p>
<p>Here&#8217;s the example site that I just laid out above:</p>
<p><a href="http://www.figmentthinking.com/the-power-of-css/" target="_blank">http://www.figmentthinking.com/the-power-of-css/</a></p>
<p>Watch what happens when you switch between the different links, and remember that this each page has the exact same code, just different style sheets.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2007/12/20/the-power-of-css-for-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script.aculo.us and TinyMCE Incompatibility Solution</title>
		<link>http://www.figmentthinking.com/2007/06/21/scriptaclous-and-tinymce-incompatibility-solution/</link>
		<comments>http://www.figmentthinking.com/2007/06/21/scriptaclous-and-tinymce-incompatibility-solution/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 16:12:52 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/scriptaclous-and-tinymce-incompatibility-solution/</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/>I found that when I tried to use Script.aculo.us and TinyMCE together, that I lost 1 functionality of one of the two scripts on Firefox. The solution I found was to place the Script.aculo.us &#60;script&#62; tags directly below the &#60;body&#62; tag. 1 2 3 4 5 6 7 ... &#60;script type=&#34;text/javascript&#34;&#62;&#60;!--mce:0--&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34;&#62;&#60;!--mce:1--&#62;&#60;/script&#62; &#160; &#60;script [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/javascript-icon.png" width="32" height="32" alt="" title="JavaScript" /><img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/><p>I found that when I tried to use Script.aculo.us and TinyMCE together, that I lost 1 functionality of one of the two scripts on Firefox.  The solution I found was <span id="more-39"></span>to place the Script.aculo.us &lt;script&gt; tags directly below the &lt;body&gt; tag.</p>
<div>

<div class="wp_codebox"><table><tr id="p3914"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p39code14"><pre class="javascript" style="font-family:monospace;">...
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">0</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">1</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;scripts/prototype.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">2</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;scripts/scriptaculous.js&quot;</span> type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;&lt;!--</span>mce<span style="color: #339933;">:</span><span style="color: #CC0000;">3</span><span style="color: #339933;">--&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
...</pre></td></tr></table></div>

</div>
]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2007/06/21/scriptaclous-and-tinymce-incompatibility-solution/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Working With A PHP Configuration File</title>
		<link>http://www.figmentthinking.com/2007/03/18/working-with-a-php-configuration-file/</link>
		<comments>http://www.figmentthinking.com/2007/03/18/working-with-a-php-configuration-file/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 04:36:17 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/working-with-a-php-configuration-file/</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/>TRUE or FALSE: &#8220;It&#8217;s easier to update one file or 10 files.&#8221; This statement is True. The concept of a configuration file is that it stores data in one location that any other file on the web site can access. The data that is stored in a configuration file can be unlimited, but usually contains [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/><p>TRUE or FALSE: &#8220;It&#8217;s easier to update one file or 10 files.&#8221;  This statement is True.</p>
<p>The concept of a configuration file is that it stores data in one location that any other file on the web site can access.  The data that is stored in a configuration file can be unlimited, but usually contains data such as by not limited to the following:</p>
<ul>
<li>MySQL Database, Username and Password</li>
<li>Document Root Folder</li>
<li>To use Cookies or Sessions</li>
<li>Set time limit for Sessions</li>
<li>Custom variables for web applications</li>
<li>and etc.</li>
</ul>
<p><span id="more-35"></span>Too many times I&#8217;ve assumed responsibility for a web site where the previous developer didn&#8217;t make use of a PHP configuration file.  Often the most common things I find is that the MySQL information is on every single page, and in the even that we have to change the password, I have to either setup a config file, or change every file that&#8217;s using that information.</p>
<p>I opt for changing each page to use the configuration file and set the MySQL information in just one location.  This makes my work a lot easier in the future.  I can now set other information in this config file as well based on the site and it&#8217;s purpose.</p>
<p>The problem with having to change the same data in multiple files takes additional time and presents a larger margin for human error, where with a config file change can be made once, and human error can be corrected much quicker and easier.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2007/03/18/working-with-a-php-configuration-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use As Many PHP Files As You Need</title>
		<link>http://www.figmentthinking.com/2007/03/12/use-as-many-php-files-as-you-need/</link>
		<comments>http://www.figmentthinking.com/2007/03/12/use-as-many-php-files-as-you-need/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 00:52:01 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/use-as-many-php-files-as-you-need/</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/>I&#8217;m working with a friend &#8211; helping him with some dynamic coding &#8211; on a web site. The web site was put together by a different webmaster and it functions. The clients needs have changed over time, and changes are need to the site to comply with a few legal things (it deals with housing.) [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/><p>I&#8217;m working with a friend &#8211; helping him with some dynamic coding &#8211; on a web site. The web site was put together by a different webmaster and it functions. The clients needs have changed over time, and changes are need to the site to comply with a few legal things (it deals with housing.) As I begin looking at the PHP code, I can tell the person who programmed it was very intelligent, but fell prey to some of the things that irritate me, and create problems when trying to update the code as I&#8217;m doing now.</p>
<p>First, <a target="_blank" href="http://www.figmentthinking.com/commenting-your-php-code/">they didn&#8217;t comment any of their PHP code</a>, second <a target="_blank" href="http://www.figmentthinking.com/looping-through-arrays/">they did make use of arrays</a>, but did a poor job of it, and they posted all of the forms back to themselves, which brings me to the point of this post. Use more than one file if you have to, and don&#8217;t be afraid to do so. Here&#8217;s the problem with posting a form back to itself.</p>
<p><span id="more-31"></span>In this case we have a form that is sending the accumulated form data via email to the client for review. That data is also saved to a database so that it can be edited and tracked in the event that the user becomes a tenant. The problem is that since the form post to itself, the client receives and email, and the database gets a new row added every time the page is refreshed after the user fills it out.</p>
<p>When I saw this I recommended to my friend that over time we fix this. It turns out that there are revisions that need to be made to the form anyway, so as we fix the form, we&#8217;ll setup additional pages to process the form data, and redirect to the next part of the form ( there are 3 parts to the form.) This way when the user clicks the final submit button, the information will be emailed, collected in to the database and then the user will be taken to a thank you page. This process will keep the redundant &amp; superfluous rows out of the clients inbox and database.</p>
<p>In this example, just by processing the form data with another, you reduce the irritation to the client and to yourself because they won&#8217;t keep asking&#8230; &#8220;Why do I get two or three emails for some people, and why do they show up that many times in the database?&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2007/03/12/use-as-many-php-files-as-you-need/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Commenting Your PHP Code</title>
		<link>http://www.figmentthinking.com/2007/03/12/commenting-your-php-code/</link>
		<comments>http://www.figmentthinking.com/2007/03/12/commenting-your-php-code/#comments</comments>
		<pubDate>Tue, 13 Mar 2007 00:21:41 +0000</pubDate>
		<dc:creator>marion</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.figmentthinking.com/commenting-your-php-code/</guid>
		<description><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/>About two years ago I started working for a local web firm. It was small, at that time there we&#8217;re only 3 of us, and I was the only PHP developer on staff. We had one client who used our services, combined with another web vendor. Normally we just spit out regular static HTML pages [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.figmentthinking.com/wp-content/uploads/2010/04/php-icon.png" width="32" height="32" alt="" title="PHP" /><br/><p>About two years ago I started working for a local web firm. It was small, at that time there we&#8217;re only 3 of us, and I was the only PHP developer on staff. We had one client who used our services, combined with another web vendor. Normally we just spit out regular static HTML pages for them, until one day something happened, and we were passed a job that required editing some PHP code from the other vendor.</p>
<p>I honestly don&#8217;t remember who the client was, or what the PHP that I was editing was used for, all I remember is that it was the worst code I had ever come into contact with. Nothing made sense, the coding method was random, nothing was optimized, and I wanted to re-write the whole thing and start over. Time did not permit a total re-write, so I was stuck editing the nasty code that was before me. So as I made my edits, I started commenting the code, it went something like this&#8230;</p>
<p><span id="more-28"></span></p>

<div class="wp_codebox"><table><tr id="p2816"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p28code16"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># I don't know what these moron's where thinking here, but it should work like this...
</span><span style="color: #009900;">&#123;</span>some php code<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;"># Were they smoking crack when they tried to set this up?
</span><span style="color: #009900;">&#123;</span>some php code<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>I fixed the PHP coding problems, uploaded the files and everything worked as the client requested. I thought nothing else about the project until my boss was on the phone with the other web vendor, trying to explain how I had fixed their code.</p>
<p>What I realized was that my boss was on the phone with the `morons` &#8211; as I had called them in my PHP comments &#8211; who wrote the horrible PHP code that frustrated me. My boss got off the phone and I asked him&#8230; so how mad were they? He didn&#8217;t know what I meant. I confessed to my having adding some rude comments in the code as I fixed it. He laughed, and said they never said a word about it.</p>
<p>The moral to this story is that if you comment your code, whether your a moron, or really smoking crack when you write it, chances are someone will better understand what you were thinking when you wrote it and have an easier time maintaining your code.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.figmentthinking.com/2007/03/12/commenting-your-php-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
