<?xml version="1.0" encoding="utf-8"?>

			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>Charlie Griefer - jQuery Cookbook</title>
			<link>http://charlie.griefer.com/blog/index.cfm</link>
			<description>ColdFusion developer Charlie Griefer talks and wonders, &quot;is anybody listening?&quot;</description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 18:56:39 -0500</pubDate>
			<lastBuildDate>Fri, 16 Oct 2009 11:40:00 -0500</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>charlie@griefer.com</managingEditor>
			<webMaster>charlie@griefer.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>charlie@griefer.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			<itunes:image href="" />
			<image>
				<url></url>
				<title>Charlie Griefer</title>
				<link>http://charlie.griefer.com/blog/index.cfm</link>
			</image>
			<itunes:explicit>no</itunes:explicit>
			
			<item>
				<title>jQuery - Ensuring Unique Usernames in Real Time</title>
				<link>http://charlie.griefer.com/blog/index.cfm/2009/10/16/jQuery--Ensuring-Unique-Usernames-in-Real-Time</link>
				<description>
				
				&lt;p&gt;A question came up yesterday on the &lt;a href=&quot;http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:60249&quot; class=&quot;externalLink&quot;&gt;cf-talk mailing list&lt;/a&gt;.  The question involved a user who is filling out a form and choosing a user name.  The poster wanted to check in &quot;real time&quot; (after the blur event on the username input) that the name is unique.&lt;/p&gt;

&lt;p&gt;As &lt;a href=&quot;http://blog.cutterscrossing.com/&quot; class=&quot;externalLink&quot;&gt;Steve &quot;Cutter&quot; Blades&lt;/a&gt; points out, this can be accomplished using J&#xf6;rn Zaefferer&apos;s &lt;a href=&quot;http://bassistance.de/jquery-plugins/jquery-plugin-validation/&quot; class=&quot;externalLink&quot;&gt;Validation Plugin&lt;/a&gt; for jQuery.  This plugin is essentially the defacto standard for doing validations via jQuery.  It can be implemented very easily to do the most basic validations, but it can also be extended to do any number of complex validations.&lt;/p&gt;

&lt;p&gt;That being said, I thought it still might be worthwhile to see a quick example of how to build out that specific functionality from scratch.  How can we use jQuery to give a user real-time feedback as to whether or not a username is available?  Start with the markup below:&lt;/p&gt;  [More]
				</description>
				
				<category>ColdFusion</category>
				
				<category>jQuery Cookbook</category>
				
				<category>jQuery</category>
				
				<pubDate>Fri, 16 Oct 2009 11:40:00 -0500</pubDate>
				<guid>http://charlie.griefer.com/blog/index.cfm/2009/10/16/jQuery--Ensuring-Unique-Usernames-in-Real-Time</guid>
				
				
			</item>
			
			<item>
				<title>jQuery - A Traversal Quickie</title>
				<link>http://charlie.griefer.com/blog/index.cfm/2009/9/24/jQuery--A-Traversal-Quickie</link>
				<description>
				
				&lt;p&gt;Paraphrased from the jQuery mailing list:&lt;/p&gt;

&lt;p&gt;
&lt;blockquote&gt;
I have a table with links inside of it.  Each &amp;lt;tr&amp;gt; has a unique ID assigned to it.  How can I get the ID of the &amp;lt;tr&amp;gt; that contains the link that was clicked?
&lt;/blockquote&gt;
&lt;/p&gt;

&lt;p&gt;The following code snippet was included:&lt;/p&gt;

&lt;pre class=&quot;brush:xml;&quot;&gt;
&amp;lt;tr id=&quot;1&quot;&gt;
    &amp;lt;td&gt;Name&amp;lt;/td&gt;
    &amp;lt;td&gt;E-Mail&amp;lt;/td&gt;
    &amp;lt;td&gt;&amp;lt;a href=&quot;#&quot; class=&quot;accept&quot;&gt;Accept&amp;lt;/a&gt;&amp;lt;/td&gt;
&amp;lt;/tr&gt;
&lt;/pre&gt;

&lt;p&gt;jQuery provides a number of &lt;a href=&quot;http://docs.jquery.com/Traversing&quot; class=&quot;externalLink&quot;&gt;DOM traversal methods&lt;/a&gt;.  While the initial thought might be to go with parent(), that would get the &amp;lt;td&amp;gt; containing the link.  You could double up on parent(), but that seems a bit kludgy (IMO).&lt;/p&gt;  [More]
				</description>
				
				<category>jQuery Cookbook</category>
				
				<category>jQuery</category>
				
				<pubDate>Thu, 24 Sep 2009 13:37:00 -0500</pubDate>
				<guid>http://charlie.griefer.com/blog/index.cfm/2009/9/24/jQuery--A-Traversal-Quickie</guid>
				
				
			</item>
			
			<item>
				<title>jQuery - Dynamically Adding Form Elements</title>
				<link>http://charlie.griefer.com/blog/index.cfm/2009/9/17/jQuery--Dynamically-Adding-Form-Elements</link>
				<description>
				
				&lt;p&gt;You know the situation.  You have a form with &apos;x&apos; number of text inputs.  Eventually, you realize &apos;x&apos; may not be enough for all users.  But in the interest of keeping the page clean, you don&apos;t want to arbitrarily continue to add these elements.&lt;/p&gt;

&lt;p&gt;What you really want to do is show a minimal amount initially, and then give the user the option of adding as many more (within reason) as that particular user might need.  You might go about doing that by creating 100 fields and setting their CSS &lt;b&gt;display&lt;/b&gt; attribute to &quot;none&quot;, while adding a slick JavaScript function to allow the user to display as many as they need.  And that would work, but...&lt;/p&gt;

&lt;p&gt;Why create any DOM elements that aren&apos;t going to be used?  Wouldn&apos;t it be better to dynamically create an element and add it to the DOM as the user needs it?  (Hopefully you&apos;re nodding in affirmation)  Great!  Let&apos;s do it with jQuery.&lt;/p&gt;  [More]
				</description>
				
				<category>jQuery Cookbook</category>
				
				<category>jQuery</category>
				
				<pubDate>Thu, 17 Sep 2009 02:34:00 -0500</pubDate>
				<guid>http://charlie.griefer.com/blog/index.cfm/2009/9/17/jQuery--Dynamically-Adding-Form-Elements</guid>
				
				
			</item>
			
			<item>
				<title>jQuery - Manipulating Table Row Background Colors (Part 3)</title>
				<link>http://charlie.griefer.com/blog/index.cfm/2009/8/20/jQuery--Manipulating-Table-Row-Background-Colors-Part-3</link>
				<description>
				
				&lt;p&gt;A couple of days ago, we used jQuery to automatically highlight any table rows where the value of a specified &amp;lt;td&amp;gt; was less than $100.&lt;/p&gt;

&lt;p&gt;Yesterday, we used a different method (traversing the DOM) to highlight any table rows where the value of the &quot;Sale Price&quot; was 50% or more off of the value of the &quot;Regular Price&quot;.&lt;/p&gt;

&lt;p&gt;Today, we&apos;re going to combine both into one application.  Both of the original methods will work the same.  The only thing we&apos;re going to add is a clearRows() method, which will run before either of the two methods described above.  This will remove the background color from all table rows, effectively &quot;resetting&quot; the table before either of the two highlight methods run.&lt;/p&gt;

&lt;p&gt;Given the table below, allow the user to see which items are under $100, -or- which items are reduced by 50% or more.&lt;/p&gt;  [More]
				</description>
				
				<category>jQuery Cookbook</category>
				
				<category>jQuery</category>
				
				<pubDate>Thu, 20 Aug 2009 11:52:00 -0500</pubDate>
				<guid>http://charlie.griefer.com/blog/index.cfm/2009/8/20/jQuery--Manipulating-Table-Row-Background-Colors-Part-3</guid>
				
				
			</item>
			
			<item>
				<title>jQuery - Manipulating Table Row Background Colors (The Sequel)</title>
				<link>http://charlie.griefer.com/blog/index.cfm/2009/8/19/jQuery--Manipulating-Table-Row-Background-Colors-The-Sequel</link>
				<description>
				
				&lt;p&gt;Yesterday we looked at using jQuery to manipulate table row background colors based on a specific set of criteria.  It was a relatively straightforward effort as we simply referenced a particular class name.  However, sometimes we don&apos;t have total control over the markup, and will need to rely on our ability to traverse the DOM.&lt;/p&gt;

&lt;p&gt;Given the table below, allow the user to see which items are marked down by 50% or more.&lt;/p&gt;

&lt;p&gt;
&lt;pre class=&quot;brush:xml;&quot;&gt;
&amp;lt;table id=&quot;inventoryTable&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;
&amp;lt;thead&gt;
&amp;lt;tr&gt;
	&amp;lt;td&gt;Original Price&amp;lt;/td&gt;
	&amp;lt;td&gt;Sale Price&amp;lt;/td&gt;
	&amp;lt;td&gt;Description&amp;lt;/td&gt;
&amp;lt;/tr&gt;
&amp;lt;/thead&gt;
&amp;lt;tr&gt;
	&amp;lt;td&gt;100.00&amp;lt;/td&gt;
	&amp;lt;td&gt;65.00&amp;lt;/td&gt;
	&amp;lt;td&gt;Green widget (Yellow stripes)&amp;lt;/td&gt;
&amp;lt;/tr&gt;
&amp;lt;tr&gt;
	&amp;lt;td&gt;200.00&amp;lt;/td&gt;
	&amp;lt;td&gt;110.00&amp;lt;/td&gt;
	&amp;lt;td&gt;Lavender Widget (White dots)&amp;lt;/td&gt;
&amp;lt;/tr&gt;
&amp;lt;tr&gt;
	&amp;lt;td&gt;200.00&amp;lt;/td&gt;
	&amp;lt;td&gt;74.00&amp;lt;/td&gt;
	&amp;lt;td&gt;Red Widget (Solid)&amp;lt;/td&gt;
&amp;lt;/tr&gt;
&amp;lt;/tbody&gt;
&amp;lt;/table&gt;
&lt;/pre&gt;
&lt;/p&gt;  [More]
				</description>
				
				<category>jQuery Cookbook</category>
				
				<category>jQuery</category>
				
				<pubDate>Wed, 19 Aug 2009 11:37:00 -0500</pubDate>
				<guid>http://charlie.griefer.com/blog/index.cfm/2009/8/19/jQuery--Manipulating-Table-Row-Background-Colors-The-Sequel</guid>
				
				
			</item>
			
			<item>
				<title>jQuery - Manipulating Table Row Background Colors</title>
				<link>http://charlie.griefer.com/blog/index.cfm/2009/8/18/jQuery--Manipulating-Table-Row-Background-Colors</link>
				<description>
				
				&lt;p&gt;Given the table below, allow the user to see which items are under $100&lt;/p&gt;

&lt;p&gt;
&lt;pre class=&quot;brush:xml;&quot;&gt;
&amp;lt;table id=&quot;inventoryTable&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;
&amp;lt;thead&gt;
&amp;lt;tr&gt;
	&amp;lt;td&gt;Original Price&amp;lt;/td&gt;
	&amp;lt;td&gt;Sale Price&amp;lt;/td&gt;
	&amp;lt;td&gt;Description&amp;lt;/td&gt;
&amp;lt;/tr&gt;
&amp;lt;/thead&gt;
&amp;lt;tbody&gt;
&amp;lt;tr&gt;
	&amp;lt;td class=&quot;originalPrice&quot;&gt;100.00&amp;lt;/td&gt;
	&amp;lt;td class=&quot;salePrice&quot;&gt;65.00&amp;lt;/td&gt;
	&amp;lt;td&gt;Green widget (Yellow stripes)&amp;lt;/td&gt;
&amp;lt;/tr&gt;
&amp;lt;tr&gt;
	&amp;lt;td class=&quot;originalPrice&quot;&gt;200.00&amp;lt;/td&gt;
	&amp;lt;td class=&quot;salePrice&quot;&gt;110.00&amp;lt;/td&gt;
	&amp;lt;td&gt;Lavender Widget (White dots)&amp;lt;/td&gt;
&amp;lt;/tr&gt;
&amp;lt;tr&gt;
	&amp;lt;td class=&quot;originalPrice&quot;&gt;200.00&amp;lt;/td&gt;
	&amp;lt;td class=&quot;salePrice&quot;&gt;74.00&amp;lt;/td&gt;
	&amp;lt;td&gt;Red Widget (Solid)&amp;lt;/td&gt;
&amp;lt;/tr&gt;
&amp;lt;/tbody&gt;
&amp;lt;/table&gt;
&lt;/pre&gt;
&lt;/p&gt;  [More]
				</description>
				
				<category>jQuery Cookbook</category>
				
				<category>jQuery</category>
				
				<pubDate>Tue, 18 Aug 2009 12:27:00 -0500</pubDate>
				<guid>http://charlie.griefer.com/blog/index.cfm/2009/8/18/jQuery--Manipulating-Table-Row-Background-Colors</guid>
				
				
			</item>
			
			<item>
				<title>jQuery - Accessing Dynamic Elements</title>
				<link>http://charlie.griefer.com/blog/index.cfm/2009/8/14/jQuery--Accessing-Dynamic-Elements</link>
				<description>
				
				&lt;p&gt;Given &apos;n&apos; number of dynamically generated elements on a page, all starting with a particular string (e.g. &quot;menu_1, menu_2, menu_3 ... &lt;em&gt;menu_n&lt;/em&gt;&quot;), and without knowing how many there are, use jQuery to access these elements.&lt;/p&gt;  [More]
				</description>
				
				<category>jQuery Cookbook</category>
				
				<category>jQuery</category>
				
				<pubDate>Fri, 14 Aug 2009 23:38:00 -0500</pubDate>
				<guid>http://charlie.griefer.com/blog/index.cfm/2009/8/14/jQuery--Accessing-Dynamic-Elements</guid>
				
				
			</item>
			
			<item>
				<title>jQuery - Accessing Checked Checkboxes</title>
				<link>http://charlie.griefer.com/blog/index.cfm/2009/8/14/jQuery--Accessing-Checked-Checkboxes</link>
				<description>
				
				&lt;p&gt;Assuming the markup below, determine which checkboxes are checked.&lt;/p&gt;

&lt;p&gt;
&lt;pre class=&quot;brush:xml;&quot;&gt;
&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;
                    &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&gt;
&amp;lt;html&gt;
&amp;lt;head&gt;
	&amp;lt;title&gt;&amp;lt;/title&gt;
&amp;lt;/head&gt;

&amp;lt;body&gt;

&amp;lt;input type=&quot;checkbox&quot; name=&quot;cb1&quot; id=&quot;cb1&quot; value=&quot;a&quot; /&gt; A&amp;lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;cb2&quot; id=&quot;cb2&quot; value=&quot;b&quot; /&gt; B&amp;lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;cb3&quot; id=&quot;cb3&quot; value=&quot;c&quot; /&gt; C&amp;lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;cb4&quot; id=&quot;cb4&quot; value=&quot;d&quot; /&gt; D&amp;lt;br /&gt;
&amp;lt;input type=&quot;checkbox&quot; name=&quot;cb5&quot; id=&quot;cb5&quot; value=&quot;e&quot; /&gt; E&amp;lt;br /&gt;

&amp;lt;input type=&quot;button&quot; id=&quot;myButton&quot; value=&quot;Which are Checked?&quot; /&gt;

&amp;lt;/body&gt;
&amp;lt;/html&gt;
&lt;/pre&gt;
&lt;p&gt;

&lt;p&gt;Using &quot;POJS&quot; (plain old JavaScript), we&apos;d do the following (after adding an onclick attribute to the button):&lt;/p&gt;  [More]
				</description>
				
				<category>jQuery Cookbook</category>
				
				<category>jQuery</category>
				
				<pubDate>Fri, 14 Aug 2009 22:42:00 -0500</pubDate>
				<guid>http://charlie.griefer.com/blog/index.cfm/2009/8/14/jQuery--Accessing-Checked-Checkboxes</guid>
				
				
			</item>
			
			<item>
				<title>jQuery - A Love Story</title>
				<link>http://charlie.griefer.com/blog/index.cfm/2009/8/14/jQuery--A-Love-Story</link>
				<description>
				
				&lt;p&gt;Over the past year or so, I&apos;ve been endeavoring to learn &lt;a href=&quot;http://www.jquery.com&quot; class=&quot;externalLink&quot;&gt;jQuery&lt;/a&gt;.  I put it off for a long time.  I&apos;ve always been a fan of JavaScript, and have been used to writing it for as long as I can remember.  I couldn&apos;t justify taking the time to learn a new way to do something that I already knew how to do.&lt;/p&gt;

&lt;p&gt;But little by little and more and more I kept hearing people espouse the virtues of jQuery.  I finally resigned myself to sit down and give it a fair shake.&lt;/p&gt;

&lt;p&gt;At first, yes it was a little daunting.  I think I was still subconsciously resisting this new way of doing things.  But little by little I started to see the power of jQuery.  It isn&apos;t that it&apos;s just a different way to do something that I already know how to do... but it&apos;s a quicker and easier and more powerful way.&lt;/p&gt;  [More]
				</description>
				
				<category>jQuery Cookbook</category>
				
				<category>jQuery</category>
				
				<pubDate>Fri, 14 Aug 2009 10:14:00 -0500</pubDate>
				<guid>http://charlie.griefer.com/blog/index.cfm/2009/8/14/jQuery--A-Love-Story</guid>
				
				
			</item>
			</channel></rss>