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.)

cfUniForm v2.6 - Global Plugin Configs + ValidateThis! Integration

Posted on November 13, 2008 at 4:17 AM in Uni-Form Tag Library, ColdFusion

The latest release of the cfUniForm tag library focuses on a new configuration feature, as well as integration with the ValidateThis! validation framework.

[Continue Reading]

Comments
(Comment Moderation is enabled. Your comment will not appear until approved.)

On 11/18/08 at 12:17 PM, Michael said:

Instead of using ValidateThis, is it possible to use custom validation like the following? If so is there a best practice for incorporating this into CfUniform? BTW, great library! Thank you very much.

<script type="text/javascript">
$(document).ready( function() {
$('#QuoteForm').validate({
rules:{
email:{
required:true,
minLength:5
},
confirm_email:{
required:true,
minlength:5,
equalTo:"#email"
},

},
messages:{
email:{
required:"Please your email",
minLength:"Your email must be at least 5 characters long"
},
confirm_email:{
required:"Please verify your email",
minLength:"Your email must be at least 5 characters long",
equalTo: "Please enter the same email twice"
}
}
});
}
</script>

On 11/18/08 at 5:30 PM, Matt Quackenbush said:

@ Michael- You do not have to use ValidateThis! at all; the library just simply supports integration with it. The script you have right there should work just fine as long as you have the jQuery validation plugin loaded (either by default in your application, or by setting @loadValidation to true).

On 11/19/08 at 3:32 PM, Michael said:

Thanks Matt. I did not want to create a any confusion. As an FYI I added the script, but no go. Any thoughts are appreciated. All the best!

On 11/19/08 at 4:00 PM, Michael said:

Nevermind. I did not see the @validationSetup. Works great Thanks!

On 11/19/08 at 4:05 PM, Matt Quackenbush said:

@ Michael- Awesome! Glad you got it all worked out. Do you by chance have a blog that you could post an example on (and link to it here)?

On 11/19/08 at 4:09 PM, Michael said:

I do not blog. I know, lame.... But, i can put together an example tomorrow and post it as a link for people to view. Outstanding library!!

On 11/29/08 at 4:55 PM, George said:

Does cfuniform have a rich text editor and if it does how do I load it?

On 11/29/08 at 5:15 PM, Matt Quackenbush said:

@ George- No, cfUniForm does not include a rich text editor library. There are several to choose from, and different people want different ones. To use one with cfUniForm is pretty easy though. Just use the type="custom" attribute.

<uform:field type="custom">
<!--- place your rich text editor code in here --->
</uform:field>

HTH

On 11/30/08 at 9:27 AM, George said:

@matt, thanks for replying. Is there anyway to add a RTE (Rich Text Editor) using the Global Config setup that you used inside of ColdSpring? Can you please should the syntax for that?

On 11/30/08 at 2:24 PM, Matt Quackenbush said:

@ George- The global config is for configuring integrated jQuery plugins and providing paths to them. Since there is not currently an RTE that is integrated into cfUniForm, the global config won't be of benefit. However, your question has given me an idea that I'm going to bounce around and see what I can come up with for a later release.
CodeBassRadio

Latest Articles

Eventually something really brilliant and witty will appear right here.

Calendar

November 2008
S M T W T F S
« Oct   Dec »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            

Subscribe

Enter a valid email address.

The Obligatory Wish List