<?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>ANDY STRATTON&#187; Uncategorized</title>
	<atom:link href="http://theandystratton.com/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://theandystratton.com</link>
	<description>WordPress and PHP Developer</description>
	<lastBuildDate>Fri, 03 Feb 2012 01:42:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Designer versus Medium at Ignite&#160;Annapolis</title>
		<link>http://theandystratton.com/2009/designer-versus-medium-at-ignite-annapolis</link>
		<comments>http://theandystratton.com/2009/designer-versus-medium-at-ignite-annapolis#comments</comments>
		<pubDate>Sat, 12 Dec 2009 04:19:25 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://theandystratton.com/?p=349</guid>
		<description><![CDATA[So, Ignite came to Annapolis, one of my favorite cities in the county and state that I live in: Maryland. I submitted a proposal to rant and rave about design. Not because I&#8217;m an expert, in fact, I&#8217;m far from it. I&#8217;m primarily a developer, but I&#8217;m excited about design! I truly love it, and [...]]]></description>
			<content:encoded><![CDATA[<p>So, Ignite came to Annapolis, one of my favorite cities in the county and state that I live in: Maryland. I submitted a proposal to rant and rave about design. Not because I&#8217;m an expert, in fact, I&#8217;m far from it. I&#8217;m primarily a developer, but I&#8217;m excited about design!</p>
<p>I truly love it, and especially in the web, I&#8217;ve run into tons of frustrations with designers who completely forget the purpose of <em>design</em>. It&#8217;s problem solving.</p>
<p>There was a great turn out at this event, a wonderful venue and some truly awesome speakers. I hope you check some of the others out, too. Thanks to Jenn Troy and Kris Velario for putting <a href="http://www.igniteannapolis.com" rel="external nofollow">Ignite Annapolis</a> together. Another thanks to <a href="http://davetroy.com" rel="external nofollow">Dave Troy</a> for being a catalyst for so much Baltimore-area tech and web activity.</p>
<p>Check me out and up my view count if you dare:</p>
<p><object width="580" height="360"><param name="movie" value="http://www.youtube.com/v/kvKfsjF7iok&#038;hl=en_US&#038;fs=1&#038;rel=0&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/kvKfsjF7iok&#038;hl=en_US&#038;fs=1&#038;rel=0&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="360"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://theandystratton.com/2009/designer-versus-medium-at-ignite-annapolis/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Change Firebug Shortcut in Firefox, Mac (OS&#160;X)</title>
		<link>http://theandystratton.com/2009/how-to-change-firebug-shortcut-in-firefox-mac-os-x</link>
		<comments>http://theandystratton.com/2009/how-to-change-firebug-shortcut-in-firefox-mac-os-x#comments</comments>
		<pubDate>Fri, 14 Aug 2009 20:09:42 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://theandystratton.com/?p=261</guid>
		<description><![CDATA[Jonathan Snook posted a tweet about updating his Firebug shortcuts in the Firefox plugin, and noted it was different than for other plugins. I have been looking for this for a while, so I wanted to post it for all of you. The problem is, the default shortcut (F12) is a default/common shortcut for your [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://snook.ca">Jonathan Snook</a> posted a <a href="http://twitter.com/snookca/status/3287570056">tweet</a> about updating his Firebug shortcuts in the Firefox plugin, and noted it was different than for other plugins. I have been looking for this for a while, so I wanted to post it for all of you.</p>
<p>The problem is, the default shortcut (F12) is a default/common shortcut for your OS X Widget Dashboard. I wanted to keep it this way, but would get annoyed not having a quick keyboard shortcut to open Firebug.</p>
<p>Here&#8217;s how to do it:</p>
<p style="text-align:center"><object width="400" height="334"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=6106894&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=c9ff23&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=6106894&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=c9ff23&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="334"></embed></object></p>
<ol>
<li>Click the Firebug icon in the lower right corner of Firefox&#8217;s status bar to open the Firebug panel</li>
<li>Click the Firebug icon in the top right of the panel</li>
<li>Choose <em>Customize Shortcuts</em></li>
<li>Scroll to <em>Open Firebug</em></li>
<li>Delete it&#8217;s content and press the combination of keys on your keyboard you&#8217;d like to use</li>
<li>Press OK.</li>
<li>Press OK on the next alert to confirm the keyboard shortcut changes</li>
<li>Restart Firefox</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://theandystratton.com/2009/how-to-change-firebug-shortcut-in-firefox-mac-os-x/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WPLookup Buzz &#8211; Enhancement&#160;Requests?</title>
		<link>http://theandystratton.com/2009/wplookup-buzz-enhancement-requests</link>
		<comments>http://theandystratton.com/2009/wplookup-buzz-enhancement-requests#comments</comments>
		<pubDate>Sat, 07 Mar 2009 17:04:23 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://theandystratton.com/2009/wplookup-buzz-enhancement-requests/</guid>
		<description><![CDATA[So buzz is spreading in the WordPress/blogging community about WPLookup. Stay tuned, as I&#8217;m thinking some nice additions will be on the way. Have suggestions? Leave a comment!]]></description>
			<content:encoded><![CDATA[<p>So buzz is spreading in the WordPress/blogging community about <a href="http://wplookup.com" rel="external">WPLookup</a>. Stay tuned, as I&#8217;m thinking some nice additions will be on the way.</p>
<p>Have suggestions? Leave a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://theandystratton.com/2009/wplookup-buzz-enhancement-requests/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fixing Home, End, Page Up, and Page Down in Leopard&#8217;s&#160;Terminal</title>
		<link>http://theandystratton.com/2009/fixing-home-end-page-up-and-page-down-in-leopards-terminal</link>
		<comments>http://theandystratton.com/2009/fixing-home-end-page-up-and-page-down-in-leopards-terminal#comments</comments>
		<pubDate>Tue, 17 Feb 2009 06:37:49 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[Mac Hack]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[productivity enhancers]]></category>

		<guid isPermaLink="false">http://www.andystratton.com/?p=40</guid>
		<description><![CDATA[Well, if you&#8217;re like me, you used to be pro-Windows. Then you found and fell in love with Linux. Then you realized how complicated it was to emulate your Windows software in a Linux environment, or get the Broadcom wireless card on your Dell laptop to work. Then you discovered the Mac. Sleek. Sexy. Expensive&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Well, if you&#8217;re like me, you used to be pro-Windows. Then you found and fell in love with <a href="http://www.ubuntu.com" rel="external">Linux</a>. Then you realized how complicated it was to emulate your Windows software in a Linux environment, or <a href="http://ubuntuforums.org/showthread.php?t=25683" rel="external">get the Broadcom wireless card</a> on your Dell laptop to work.</p>
<p><strong>Then you discovered the <a href="http://store.apple.com" rel="external">Mac</a>.</strong> Sleek. Sexy. Expensive&#8230; and the best of both worlds. A <a href="http://www.apple.com/macosx/technology/unix.html" rel="external">Unix-based platform</a>, native Adobe apps, [paid] support, and a real terminal!</p>
<p>But wait, trouble in paradise &mdash; our favorite Windows/Linux key commands (Home, End, Page Up, Page Down) aren&#8217;t working as inspected. In fact they&#8217;re different throughout the OS.</p>
<p>Well, kids, after researching, I&#8217;ve finally got a working solution for Terminal.app:</p>
<ol>
<li>Open Terminal.app</li>
<li>Open the Preferences window (CMD+,)</li>
<li>Click the Settings tab</li>
<li>Select your current Settings theme, and click on the Keyboard tab</li>
<li>Edit (or Add) the entry for Home
<ul>
<li>Set <em>Action:</em> to <em>send string to shell:</em></li>
<li>Set the string to \001 (or press Ctrl+a)</li>
</ul>
</li>
<li>Edit (or Add) the entry for End
<ul>
<li>Set <em>Action:</em> to <em>send string to shell:</em></li>
<li>Set the string to \005 (or press Ctrl+e)</li>
</ul>
</li>
<li>Edit (or Add) the entry for Page Up
<ul>
<li>Set <em>Action:</em> to <em>send string to shell:</em></li>
<li>Set the string to \033[5~ (copy and paste this in)</li>
</ul>
</li>
<li>Edit (or Add) the entry for Page Down
<ul>
<li>Set <em>Action:</em> to <em>send string to shell:</em></li>
<li>Set the string to \033[6~ (copy and paste this in)</li>
</ul>
</li>
<li>Close the settings window.</li>
</ol>
<p>There you go. Terminal should be ready to use the Home, End, Page Up, and Page Down keys as expected by Windows/Linux users.</p>
<p>SSH into your favorite Linux server, open <code>nano</code>, <code>vi</code>, or <code>emacs</code> and enjoy.</p>
<p><strong>These articles made <em>this</em> article possible:</strong></p>
<ul>
<li> The articles <a href="http://www.sysadminschronicles.com/2008/05/11/tip-of-the-day-fixing-home-and-end-keys-in-leopards-terminal-app" rel="external">Tip of the Day: Fixing Home and End Keys in Leopard&#8217;s Terminal.app</a> and <a href="http://www.sysadminschronicles.com/2008/05/11/tip-of-the-day-fixing-page-up-and-page-down-keys-in-leopards-terminal-app" rel="external">Tip of the Day: Fixing Page Up and Page Down Keys in Leopard&#8217;s Terminal.app</a> by <a href="http://www.sysadminschronicles.com" rel="external">Ben and Ron</a> &ndash; thanks guys!</li>
<li><a href="http://www.starryhope.com/tech/apple/2006/keyfixer/" rel="external">KeyFixer &#8211; Fix Your OS X Home and End Keys</a> &mdash; I&#8217;ve had little luck with this app, but it does the same key fixes for many native OS X apps.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://theandystratton.com/2009/fixing-home-end-page-up-and-page-down-in-leopards-terminal/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Accessibly Cloak Email Addresses with&#160;jQuery</title>
		<link>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery</link>
		<comments>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery#comments</comments>
		<pubDate>Mon, 16 Feb 2009 20:58:58 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.andystratton.com/?p=29</guid>
		<description><![CDATA[It&#8217;s very common on websites today to find some method of &#8220;cloaking&#8221; your email address to protect it from spam bots and email scrapers. Some use images (a la Facebook, some (like my friend Rob) encrypt their email address to protect from spam bots, and yet others spell out the syntax. While talking with my [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s very common on websites today to find some method of &#8220;cloaking&#8221; your email address to protect it from spam bots and email scrapers. Some use images (a la <a href="http://www.facebook.com" rel="external">Facebook</a>, some (like my friend <a href="http://www.robspangler.com" rel="external">Rob</a>) <a href="http://www.robspangler.com/blog/encrypt-mailto-links-to-stop-email-spam/" rel="external">encrypt their email address</a> to protect from spam bots</a>, and yet others spell out the syntax.</p>
<p>While talking with my friend Rob, we wanted to write a quick unobtrusive jQuery snippet to grab all email address on a page with their syntax spelled out, and convert them back to proper email syntax (and even turn them into <code>mailto:</code> links.</p>
<p>So, we did:</p>
<pre class="brush: jscript; title: ; notranslate">$(&quot;.email&quot;).each(function(){
	var ats, dots, address, i;
	ats = [' (at) '];
	dots = [' (dot) '];
	address = $(this).html();
	for ( i = 0; i &lt; ats.length; i++ ) {
		address = address.replace(ats[i], '@');
	}
	for ( i = 0; i &lt; dots.length; i++ ) {
		address = address.replace(dots[i], '.');
	}
	$(this).html('&amp;lt;a href=&quot;mailto:' + address + '&quot;&amp;gt;' + address + '&amp;lt;/a&amp;gt;');
});</pre>
<p><strong><a href="/examples/email-conversion.html" rel="external">Check out a very basic example.</a></strong></p>
<p>Make sure you&#8217;re wrapping the obscured email address in a <code>&lt;span/&gt;</code> element with a class name of <code>email</code> &ndash; then drop this snippet inside your <code>$(document).ready()</code> function. &#161;Viola!</p>
<p><strong>Some additional notes/caveats:</strong></p>
<ul>
<li>You&#8217;ll notice that <code>ats</code> and <code>dots</code> are <a href="http://json.org/" rel="external">JSON</a> arrays. This allows you to add multiple versions of syntax spelling (i.e. &#8221; at &#8220;, &#8221; [at] &#8220;, &#8221; at &#8220;, etc.)</li>
<li>The <code>email</code> class can be assigned to any element in your <code>HTML/XHTML</code> document.
<li>The entire <code>innerHTML</code> of the nodes with the <code>email</code> class assigned will be replaced, so choose wisely. <code>&lt;span/&gt;</code>&#8216;s come in handy here.
</ul>
]]></content:encoded>
			<wfw:commentRss>http://theandystratton.com/2009/accessibly-cloak-email-addresses-with-jquery/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Find WordPress Function and Template Tag Documentation&#160;&#8212;Fast&#8594;</title>
		<link>http://theandystratton.com/2009/find-wordpress-function-and-template-tag-documentation-fast</link>
		<comments>http://theandystratton.com/2009/find-wordpress-function-and-template-tag-documentation-fast#comments</comments>
		<pubDate>Mon, 16 Feb 2009 02:56:23 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.andystratton.com/?p=23</guid>
		<description><![CDATA[Ever looking to find WordPress Codex function and template tag documentation fast? Try WPLookup, a small tool I built to make finding these much quicker. Type in the name of the function/template tags (you can even use spaces instead of underscores), and if the corresponding WordPress Codex documentation exists, it will send you there. Check [...]]]></description>
			<content:encoded><![CDATA[<p>Ever looking to find <a href="http://codex.wordpress.org" target="_blank">WordPress Codex</a> <a href="http://codex.wordpress.org/Function_Reference" target="_blank">function</a> and <a href="http://codex.wordpress.org/Template_Tags" target="_blank">template tag</a> documentation fast?</p>
<p>Try <a href="http://wplookup.com/index.php" style="font-size:1.5em;font-variant:small-caps;font-family:Georgia,serif;font-weight:bold;color:#1A343A;">WPLookup</a>, a small tool I built to make finding these much quicker.</p>
<p>Type in the name of the function/template tags (you can even use spaces instead of underscores), and if the corresponding WordPress Codex documentation exists, it will send you there. <a href="http://wplookup.com/index.php">Check it out</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://theandystratton.com/2009/find-wordpress-function-and-template-tag-documentation-fast/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Font-size rendering issues between OS X and&#160;Windows</title>
		<link>http://theandystratton.com/2009/font-size-rendering-issues-between-os-x-and-windows</link>
		<comments>http://theandystratton.com/2009/font-size-rendering-issues-between-os-x-and-windows#comments</comments>
		<pubDate>Sun, 01 Feb 2009 07:06:56 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.andystratton.com/?p=11</guid>
		<description><![CDATA[I&#8217;ve been working more on my Mac recently, and have now twice run into an issue where font-sizes on the Mac and PC are rendering differently, even when defined with a pixel value. Sample Code For example, consider the following code: &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&#62; &#60;html xmlns="http://www.w3.org/1999/xhtml"&#62; &#60;head&#62; &#60;meta http-equiv="Content-Type" content="text/html; [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working more on my Mac recently, and have now twice run into an issue where font-sizes on the Mac and PC are rendering differently, even when defined with a pixel value.</p>
<h2>Sample Code</h2>
<p>For example, consider the following code:</p>
<pre><code>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
	&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
	&lt;title&gt;Insert title here&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

	&lt;div id="test" style="float:left;background:#e9e9e9;font-size: 16px;font-family:Georgia;"&gt;
		This is a simple test. This font should break
		at the same places on all OS'.
	&lt;/div&gt;

	&lt;div style="clear:left;"&gt;

		&lt;script type="text/javascript"&gt;
			var w = document.getElementById("test").offsetWidth;
			document.write('&lt;div style="width:' + w + 'px;background:red;"&gt;');
			document.write( "Width of div is: " + w );
			document.write('&lt;/div&gt;');
		&lt;/script&gt;

	&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
<p>This code creates a floating div element, that will stretch to the width of the contained text. It then creates another element of text using some Javascript to print out the implied with of the first element. I&#8217;ll use this to debug differences in font-size rendering between the two OS&#8217;.</p>
<h2>Rendering Differences</h2>
<p>Now, take a look at the result in Firefox on the Mac:</p>
<p><a href="http://me/wp-content/uploads/2009/02/firefox-osx-render.gif"><img src="http://www.andystratton.com/wp-content/uploads/2009/02/firefox-osx-render-300x117.gif" alt="firefox-osx-render" title="firefox-osx-render" width="300" height="117" class="alignnone size-medium wp-image-14" /></a></p>
<p>Now, look at the rendering from Firefox on my XP virtual machine:</p>
<p><a href="http://me/wp-content/uploads/2009/02/firefox-render-pc.gif"><img src="http://www.andystratton.com/wp-content/uploads/2009/02/firefox-render-pc-300x140.gif" alt="firefox-render-pc" title="firefox-render-pc" width="300" height="140" class="alignnone size-medium wp-image-19" /></a></p>
<p>There&#8217;s a 3px width difference! WHY?</p>
<p>An <a href="http://home.clara.net/rfwilmut/about/fonts.html" target="_blank">existing article</a> on the web discussing this could be due to the 72 dpi of OS X versus the default 96 dpi of Windows XP.</p>
<p>It&#8217;s frustrating as I&#8217;ve never run into this developing on Windows and checking on a Mac, only Mac to PC. Odd. More updates as I investigate and attempt to get to the bottom of this&#8230;</p>
<p><strong>Update</strong></p>
<p>So it appears as though it&#8217;s the anti-aliasing from Photoshop and OS X. They are rendering the fonts at a smaller aggregate width. I found <a href="http://damieng.com/blog/2007/06/13/font-rendering-philosophies-of-windows-and-mac-os-x" target="_blank">another post</a> about <a href="http://damieng.com/blog/2007/06/13/font-rendering-philosophies-of-windows-and-mac-os-x" target="_blank">font rendering philosophies</a>. Apparently, Windows does not use a linear method of scaling the fonts? Hrmph.</p>
<p>Looks like I&#8217;m used to Windows, and Apple&#8217;s default, proper behavior is causing issues for me in the free-for-all, proprietary non-sensical world of Windows.</p>
]]></content:encoded>
			<wfw:commentRss>http://theandystratton.com/2009/font-size-rendering-issues-between-os-x-and-windows/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>So I&#160;realize&#8230;</title>
		<link>http://theandystratton.com/2009/so-i-realize</link>
		<comments>http://theandystratton.com/2009/so-i-realize#comments</comments>
		<pubDate>Tue, 27 Jan 2009 21:13:50 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.andystratton.com/?p=9</guid>
		<description><![CDATA[&#8230;the default WordPress theme, while nice, is a bit&#8230; vanilla. I&#8217;ll be updating soon. Stay tuned for that, and, oh yeah, actual content.]]></description>
			<content:encoded><![CDATA[<p>&#8230;the default WordPress theme, while nice, is a bit&#8230; vanilla.</p>
<p>I&#8217;ll be updating soon. Stay tuned for that, and, oh yeah, actual content.</p>
]]></content:encoded>
			<wfw:commentRss>http://theandystratton.com/2009/so-i-realize/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Accessibly autopopulating text input fields with&#160;jQuery</title>
		<link>http://theandystratton.com/2009/accessibly-autopopulating-text-input-fields-with-jquery</link>
		<comments>http://theandystratton.com/2009/accessibly-autopopulating-text-input-fields-with-jquery#comments</comments>
		<pubDate>Tue, 27 Jan 2009 16:14:26 +0000</pubDate>
		<dc:creator>andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.andystratton.com/?p=3</guid>
		<description><![CDATA[Roger Johansson over at the 456 Berea Street blog post an awesome post a little over a year ago about accessibly using Javascript to autopopulate a text input field in an HTML form using the title attribute of the &#60;input/&#62; element. I&#8217;ve been using this for a while at work and in side-projects, an since [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.456bereastreet.com/about/" target="_blank">Roger Johansson</a> over at the <a href="http://www.456bereastreet.com">456 Berea Street</a> blog post an <a href="http://www.456bereastreet.com/archive/200710/autopopulating_text_input_fields_with_javascript/" target="_blank">awesome post</a> a little over a year ago about accessibly using Javascript to autopopulate a text input field in an HTML form using the <code>title</code> attribute of the <code>&lt;input/&gt;</code> element.</p>
<p>I&#8217;ve been using this for a while at work and in side-projects, an since I&#8217;m a dedicated fan of the jQuery framework, I decided to re-write his agnostic version for jQuery and share it with the world.</p>
<p><strong>The Markup (XHTML):</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;input type=&quot;text&quot; class=&quot;populate&quot; name=&quot;search&quot; value=&quot;&quot; /&gt;
</pre>
<p><strong>The Javascript:</strong></p>
<pre class="brush: jscript; title: ; notranslate">$(document).ready(function(){
	$(&quot;input.populate&quot;).each( function(){
		if ( $(this).val() == &quot;&quot; ) {
			$(this).val( $(this).attr(&quot;title&quot;) );
		}
	});
	$(&quot;input.populate&quot;).focus(function(){
		if ( $(this).val() == $(this).attr(&quot;title&quot;) ) {
			$(this).val(&quot;&quot;);
		}
	});
	$(&quot;input.populate&quot;).blur(function(){
		if ( $(this).val() == &quot;&quot; ) {
			$(this).val( $(this).attr(&quot;title&quot;) );
		}
	});
});</pre>
<p>I&#8217;ll create an online demo soon enough.</p>
<p>This is a quick, light-weight way to add some great user-experience and flavor to your UI. If you&#8217;re not a jQuery fan, definitely implement <a href="http://www.456bereastreet.com/archive/200710/autopopulating_text_input_fields_with_javascript/" target="_blank">Roger&#8217;s accessible autopopulating technique</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://theandystratton.com/2009/accessibly-autopopulating-text-input-fields-with-jquery/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

