JQuery :empty vs :blank filters

I ran into an issue this morning using a JQuery selector filter. One of the things I like about JQuery is that they have some pretty cool filters that you can use to specify different parts of your DOM.

jQuery("table tr:first"); // This will select the first row.
jQuery("table tr:last"); // this will select the last row.

I was trying to select all cells that were blank or empty so I used the following;

$("#myIDName td:blank"); //Find all <td></td> in table.

This worked fine in Firefox, but created all kinds of Havoc. I do not believe this is officially supported by the JQuery group.

I was able to solve the problem using the following change to my selector.

$("#myIDName td:empty");

I am assuming that blank has been deprecated or was never fully supported, either way you should just use the :empty filter.

jQuery presentation at the next JaxFusion meeting

jQuery will be the focus of the next JaxFusion meeting this coming Tuesday. jQuery has been popular with the ColdFusion community for awhile, but Microsoft will be including it with their ASP.NET products going forward.

There are millions of javascript frameworks for developers to use, but there is a lot of momentum behind jQuery. I am using it with my current job, and have found it to be very powerful.

The next JaxFusion meeting will be on October 21st at 6:30 PM at Southwest Signal.

Microsoft Shipping jQuery with Visual Studio

jQuery has been popular in the ColdFusion community, but it is also popular in the .NET community. It is popular enough that Microsoft is including the jQuery library with Visual Studio going forward.

Microsoft already includes AJAX .NET libraries with Visual Studio 2008 as part of the IDE. The 15k jQuery library will be included now as well. jQuery is an open source library, so it is nice to see Microsoft carrying an open source library with one of their products.

Scott Guthrie has a blog entry about this along with some jQuery examples.

I am thinking about having a presentation on jQuery at the next JaxFusion meeting in October.

BlogCFC was created by Raymond Camden. This blog is running version 5.6.001.