cfUniForm New Release - v2.1
Posted on July 19, 2008 at 4:39 PM in ColdFusion, Uni-Form Tag Library
The latest release of cfUniForm includes a couple of new features, along with a minor bug fix.
QuackFuzed.com is the personal ColdFusion coding blog of Matt Quackenbush. It exists primarily as a place for the author to learn, and hopefully to assist others in learning and/or avoiding some of the same pitfalls and mistakes. (Quack certainly makes enough mistakes daily to make up for the entire ColdFusion community.)
The latest release of cfUniForm includes a couple of new features, along with a minor bug fix.
The other day I announced the v2 release of the Uni-Form Custom Tag Library, which contains a number of enhancements and jQuery plugin integrations. One thing *very* important detail that I forgot to mention:
If you are using the Validation plugin, you *must* use jQuery 1.2.2 or higher.
As long as you are using the current release you are fine, since it is at 1.2.6 as of this posting. If you use anything 1.2.1 or earlier, you will have all sorts of JavaScript errors being thrown.
Update
This post only applies to those of you who are loading jQuery on your own. If you are relying on the tags to load jQuery for you, jQuery-1.2.6 is the release that is loaded. :-)
It's been almost six months now since I released v1 of the library, so I figured it was high time I make time to add some enhancements. Here's a quick overview of the new features:
Let's look at some of the new goodies in more detail...
In my original post releasing the tag library I said that I'd post more as I had time to do so. I figured that today I'd take a short break from what I've been working on and write something up.
First, I should point out that there have been a couple of changes made, so the download has been updated. Be sure to get the latest files. The changes mostly involve textareas: (a) I had forgotten to output the provided value, and (b) I updated the fieldset.cfm and field.cfm files to trim() any content generated by the tags. (The trim() is not mission-critical, just cleans up the resultant HTML a little bit.)
So, without further ado, let's get to it.
Oooops! I left out one little piece of important code with the original demo zip file. For those who downloaded it prior to about 11PM Eastern on Sunday night (12/16/07), you'll need this little snippet added to your form page so that it'll render properly in IE6 and below.
If you hadn't previously downloaded, the new zip file has the code plugged into the index.cfm file.
A few weeks ago I wrote about my joyous discovery of the Uni-Form markup, an XHTML Strict 1.0 valid markup for forms. At the time I had the thought of wrapping it up into a ColdFusion custom tag, but was way too busy with other items to even really look at it. Well, it just so happens that I've just gotten to the "time to write a bunch of forms for the admin interface" on a new project I'm working on, so off to write that tag I went.