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
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
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
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
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
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
6 matches
Mail list logo