Re: CFFORM and JS Script Source

2008-09-14 Thread denstar
Hey Les, Hmmm... not the most elegant solution, but... Sounds like you're doing multiple requests, right? So even if you stuck the scripts in the request scope, you'd have multiple copies. (At first I was going to say, use a custom scriptSrc for the cfform, and point it at a CF file that only

CFFORM and JS Script Source

2008-09-12 Thread Les Mizzell
Is there any way to *force* CFFORM to use JS that *I* specify to be used for validation, and not the self-generated one? Here's the problem - I've got a bunch of related forms in a Spry tabbed panel set. But, each CFFORM tag is generating it's own JS, so if you do a view source, you've got

Re: CFFORM and JS Script Source

2008-09-12 Thread Claude Schneegans
Here's the problem - One of the reasons I stopped using CFFORM more than10 years ago and developed my own tags and JS validation... ;-) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get

Re: CFFORM and JS Script Source

2008-09-12 Thread J.J. Merrick
Technically you could just use form and not cfform and see what HTML is outputted. CF just creates regular forms and uses JS functions to call the validation. Or just use jQuery form library for server-side validation and stop the headaches :-) -J.J. On Fri, Sep 12, 2008 at 10:40 AM, Les

Re: CFFORM and JS Script Source

2008-09-12 Thread William Seiter
in your cfinput/cfselect/cf[formtagname] add this parameter: onValidate for instance: cfinput name=firstname onValidate=textOnly value= message=Your First Name can only contain letters' When the form validates this field, it will call the javascript function in that parameter (textOnly). In

Re: CFFORM and JS Script Source

2008-09-12 Thread Les Mizzell
William Seiter wrote: in your cfinput/cfselect/cf[formtagname] add this parameter: onValidate William, I understand how to use validation in cffroms. The problem is that I need to have multiple forms on a single page, and each form wants to generate its' own block of javascript - so if you