Ah.  .So you were actually saying "you can 
define a single set of validation criteria _could be_ used to generate 
whatever validation is performed both client side and server side"
 
Obviously, Cocoon only generates the server side validation
code at present -  but it seems to me there is no reason why one
cannot write a generic "forms validation Javascript" code generator
to be distributed as part of future Cocoon releases... this would
save a *lot* of rework for those wishing to do client side *and*
server side validation [each has its place, after all].

>>> [EMAIL PROTECTED] 2005/10/05 09:37:59 AM >>>
Derek Hohls wrote:

>Ralph
> 
>Can you expand a bit on that statement - "you can 
>define a single set of validation criteria that is used to generate 
>whatever validation is performed both client side and server side"
> 
>Do you mean that you are generating =Javascript= from the CForms
>definition file/s, to be loaded with the form so that validation can be 
>done in the user's browser before the form is submitted?
> 
>
No. I am not personally doing client side validation, but I don't see 
any reason why you couldn't.

> 
>If so, could you show a small snippet of sample code - if not,
>could you perhaps explain a little further?
> 
>Thanks
>Derek
>
> 
>
Ralph




-- 
This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
 
CSIR E-mail Legal Notice
http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html 
 
CSIR Copyright, Terms and Conditions
http://mail.csir.co.za/CSIR_Copyright.html 
 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to
[EMAIL PROTECTED]


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their 
support.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to