qForms v2.0 Preview Online...
Ok, I finally got the qForms v2.0 Preview uploaded. I had some problems with Camtasia on my laptop—the recording was fine, but I couldn't export to SWF—I finally got things working by installing Camtasia on one of my desktops. Here's a quick rundown on some of the things you'll see in the preview:
New Features
- Support for internationalization (i18n.) The window.$language variable will allow you define a language pack to load.
- Better support for add-on modules. The API has been re-written to easily allow add-on mods to the library. The previous version did a great job on allow allowing new validation method to be quickly added and to add custom functions, but it took a little too much work to change the default behavior or to add your own event hooks.
- You can now overwrite the default methods used to output errors to the screen. The sample addon/dhtml mod shows an example of this.
- Lots of new methods--such as the setMaxLength() method which can be used to automatically forward the user to another field after X number of characters are entered. This is great for times when you went to split input between multiple fields (such as the case in phone numbers, ssn, serial numbers, etc.)
- You can now set dynamic masking for a field. When filling out fields such as phone numbers and ssn, masks can be applied to the field and qForms will automatically filter out invalid keystrokes and insert the required mask characters where appropriate.
- A new "Group" object has been added. Groups allow you to take multiple fields and treat them as one. This feature will often be used in conjunction with the setMaxLength() method in order to break up a particular value into multiple fields.
- The ability to delete validation rules from the queue on-the-fly.
- Disable/enable validation for the entire form.
- Much, much more.
Go view the qForms v2.0 Preview over at PengoWorks.com. Let me know if you have any comments!
Comments
The mask library will be cross browser. I'm in the process of re-doing it now, there are issues with it I'm not happy with. I'm becomming tempted to ignore NS4 support though. Keeping NS4 support has really added a lot of code within qForms and I'm seriously considering whether it's worth supporting anymore. After all, it is like 7 years old.
Dan G. Switzer, II
-
Apr 14, 2004
@
7:44 PM
Permalink
Greg Fuller
-
Apr 20, 2004
@
7:18 PM
Permalink
Dan G. Switzer, II
-
Apr 20, 2004
@
8:16 PM
Permalink
lee
-
May 14, 2004
@
3:09 AM
Permalink
Adam
Adam Howitt
-
Feb 23, 2007
@
11:52 AM
Permalink
-Hayley
Hayley Weast
-
Mar 16, 2007
@
11:07 AM
Permalink
Thanks in advance, bruce
Bruce
-
May 11, 2007
@
3:19 PM
Permalink
brad
-
Jul 19, 2007
@
3:42 PM
Permalink

Glad to see the messages can be customised -- no more "The your name field is required"...
When a group is submitted, does a form variable exist containing the aggregated content of the multiple fields.
Is the mask cross-browser? I've experimented with this kinda idea but only ever succeeded in IE.