[thelist] OnBlur and CFIF together?

Czechowski, Aaron aczechowski at towson.edu
Wed Jul 19 07:38:57 CDT 2000


afaik, you have two options - validate onBlur or onSubmit using client-side
JavaScript (which gives immediate results), or validate after submittion
using your CF action page on the server.  The latter takes a bit longer
because you have to wait for the data to be sent to the server, parsed, then
feedback returned.  And the simplest CF validation will just come back with
"you need to enter number in field X", thus requiring you to hit the back
button and change the field.  (You CAN write a much more user friendly
validation page, that reloads the data in the form with the problem areas
highlighted, but it's not as easy.)  Whereas JS validation is immediate, and
it's gravy to dump the cursor in the problematic field.  so i almost always
recommend js form validation.

aaron  :)

> -----Original Message-----
> From: Palyne Gaenir [mailto:palyne at sciencehorizon.com]
> 
> Since CF can do form validation AFTER a form is submitted by doing IF 
> statements looking for various things in important fields, I'm 
> looking for a way to use both the js onBlur and CF code to do all the 
> validation IN the form.  Possible??




More information about the thelist mailing list