Integrating cfUniForm and ValidateThis
Posted on February 16, 2010 at 7:16 PM in Uni-Form Tag Library, ColdFusion
As noted in the cfUniForm documentation, Bob Silverberg's ValidateThis validation framework plays quite nicely with cfUniForm. However, there is one "gotcha" that I have been meaning to blog about for awhile now, but keep forgetting.
Like cfUniForm, ValidateThis utilizes jQuery's validation plugin to handle client-side form validations. There is, however, one really important key to avoiding JavaScript errors on your cfUniForm + ValidateThis forms:
Make sure you call VT's getValidationScript() method after you close your cfUniForm-powered form. So, your code should look this...
- </uform:form><!--- close your form FIRST! --->
- <!--- now call VT's getValidationScript() method --->
- <cfhtmlhead text="#application.ValidateThis.getValidationScript(myObject)#" />
For additional integration details, be sure to check out Bob's ValidateThis + cfUniForm integration demo.
Latest Articles
- No recent entries.
Eventually something really brilliant and witty will appear right here.
Categories
- ColdBox (21) [RSS]
- ColdFusion (79) [RSS]
- Fusebox (3) [RSS]
- General (15) [RSS]
- jQuery (10) [RSS]
- Kalendar (1) [RSS]
- Rants (4) [RSS]
- Transfer (8) [RSS]
- Uni-Form Tag Library (31) [RSS]


There are no comments for this entry.
[Add Comment]