<ft:widget id=" ... "><fi:styling onchange=""></ft:widget>
The fi:styling attributes that are not used by the cform stylesheets will be copied into your html input element (ending up with <input .... onchange=""/>). So you can set a javascript piece in which you validate your field in those attributes.
Kind Regards, Jan
Jorg Heymans wrote:
fd:javascript should be your friend here i think.
http://cocoon.apache.org/2.1/userdocs/forms/validation.html
Philipp Rech wrote:
Hello Cocooners!
I have a CFrom with many fields and other input elements. Validation (based
on the Cforms validation tags) happens when i submit the form. So far so
good. Now is it possible (and how) to have Cforms validate user inputs right
away after one field is filled out? So can I call the validation not only on
submit but also when the user focuses (clicks on) the next field on the
page? Maybe through the Javascript "onBlur" event handler?
Thank you in advance! philipp
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
