<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Bob&apos;s Blog - ColdFusion Tidbits - jQuery</title>
			<link>http://www.silverwareconsulting.com/index.cfm</link>
			<description>Some stuff about ColdFusion and Transfer</description>
			<language>en-us</language>
			<pubDate>Thu, 09 Sep 2010 05:11:50 -0400</pubDate>
			<lastBuildDate>Tue, 18 May 2010 15:47:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>bob.silverberg@gmail.com</managingEditor>
			<webMaster>bob.silverberg@gmail.com</webMaster>
			
			<item>
				<title>jQuery Quickie - Checking Whether an Element Exists</title>
				<link>http://www.silverwareconsulting.com/index.cfm/2010/5/18/jQuery-Quickie--Checking-Whether-an-Element-Exists</link>
				<description>
				
				I&apos;m still a relative noob when it comes to jQuery, so today, when I had a need to check whether a particular form field existed, I had no idea how to do it. 
Of course some quick Googling brought me an &lt;a href=&quot;http://jqueryfordesigners.com/element-exists/&quot; target=&quot;_blank&quot;&gt;answer&lt;/a&gt;, 
from the &lt;a href=&quot;http://jqueryfordesigners.com/&quot; target=&quot;_blank&quot;&gt;jQuery for Designers&lt;/a&gt; site by 
&lt;a href=&quot;http://remysharp.com/&quot; target=&quot;_blank&quot;&gt;Remy Sharp&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The quick answer is that you can test the &lt;em&gt;length&lt;/em&gt; property of any jQuery object, and if it returns zero then the element
doesn&apos;t exist. For example, what I wanted to do was to disable a form field if another form field existed, so I wrote the following code:
&lt;code&gt;if ($(&quot;#fieldA&quot;).length != 0) {
	$(&quot;#fieldB&quot;).attr(&quot;disabled&quot;, &quot;disabled&quot;);
}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Reading through the &lt;a href=&quot;http://jqueryfordesigners.com/element-exists/#allcomments&quot; target=&quot;_blank&quot;&gt;comments&lt;/a&gt; on that page, 
I saw a suggestion by &lt;a href=&quot;http://binarykitten.me.uk/&quot; target=&quot;_blank&quot;&gt;Kat Reeve&lt;/a&gt; to add the following to a standard JavaScript include file:
&lt;code&gt;jQuery.fn.exists = function() { return (this.length &gt; 0); };&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Which would allow me to change the above code to:
&lt;code&gt;if ($(&quot;#fieldA&quot;).exists()) {
	$(&quot;#fieldB&quot;).attr(&quot;disabled&quot;, &quot;disabled&quot;);
}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Nice, innit?&lt;/p&gt; 
				</description>
				
				<category>jQuery</category>				
				
				<pubDate>Tue, 18 May 2010 15:47:00 -0400</pubDate>
				<guid>http://www.silverwareconsulting.com/index.cfm/2010/5/18/jQuery-Quickie--Checking-Whether-an-Element-Exists</guid>
				
			</item>
			
			<item>
				<title>Adding a Dynamic jQuery Progressbar to the ColdFusion Twitter/Google Maps Mashup</title>
				<link>http://www.silverwareconsulting.com/index.cfm/2009/5/12/Adding-a-Dynamic-jQuery-Progressbar-to-the-ColdFusion-TwitterGoogle-Maps-Mashup</link>
				<description>
				
				Because my &lt;a href=&quot;http://www.silverwareconsulting.com/CFTwitMap/CFTwitMap.cfm&quot; target=&quot;_blank&quot;&gt;ColdFusion driven Twitter/Google Maps Mashup&lt;/a&gt; is so slow, I decided that it would be nice to have a dynamic progress bar, which updates the status as each of the user&apos;s friend&apos;s addresses are being looked up. I knew that the &lt;a href=&quot;http://jqueryui.com/home&quot; target=&quot;_blank&quot;&gt;jQuery UI project&lt;/a&gt; has a &lt;a href=&quot;http://jqueryui.com/demos/progressbar/&quot; target=&quot;_blank&quot;&gt;Progressbar widget&lt;/a&gt;, so I did a quick Google for &quot;jQuery Progressbar ColdFusion&quot;, and, no big surprise, came across a &lt;a href=&quot;http://www.coldfusionjedi.com/index.cfm/2009/2/26/jQuery-Progress-Bar-with-ColdFusion&quot; target=&quot;_blank&quot;&gt;blog post&lt;/a&gt; by &lt;a href=&quot;http://www.coldfusionjedi.com/&quot; target=&quot;_blank&quot;&gt;Ray Camden&lt;/a&gt; on the topic. That was enough to get me started, but Ray didn&apos;t cover creating a dynamic progress bar that is updated by the currently running page.&lt;/p&gt;
&lt;p&gt;I figured that I could build something using cfflush, and I was not mistaken. Here&apos;s a summary of what I did:  [More]
				</description>
				
				<category>ColdFusion</category>				
				
				<category>jQuery</category>				
				
				<pubDate>Tue, 12 May 2009 10:33:00 -0400</pubDate>
				<guid>http://www.silverwareconsulting.com/index.cfm/2009/5/12/Adding-a-Dynamic-jQuery-Progressbar-to-the-ColdFusion-TwitterGoogle-Maps-Mashup</guid>
				
				<enclosure url="http://www.silverwareconsulting.com/enclosures/CFTwitMap3.zip" length="97968" type="application/unknown"/>
				
			</item>
			
			<item>
				<title>jQuery Auto-Filtering Table</title>
				<link>http://www.silverwareconsulting.com/index.cfm/2008/10/2/jQuery-AutoFiltering-Table</link>
				<description>
				
				I&apos;ve been using &lt;a href=&quot;http://jquery.com/&quot;&gt;jQuery&lt;/a&gt; for about a year now and I must admit that pretty much any JavaScript that I wrote prior to that looks ugly to me now.  I know I&apos;m nowhere near the first person to say this, but if you write JavaScript and you aren&apos;t using jQuery, you should check it out. Now.&lt;/p&gt;
&lt;p&gt;Anyway, I wanted to show you how easy it is to do something cool with jQuery.  The next thing I&apos;ll admit is that much of what I&apos;m doing with jQuery involves using existing plugins written by other, more seasoned JavaScripters than me.  But enough talk, here&apos;s the table:  [More]
				</description>
				
				<category>jQuery</category>				
				
				<pubDate>Thu, 02 Oct 2008 06:47:00 -0400</pubDate>
				<guid>http://www.silverwareconsulting.com/index.cfm/2008/10/2/jQuery-AutoFiltering-Table</guid>
				
			</item>
			</channel></rss>