[Rails] Prototype Based Validation with form_remote_tag

Paul Shannon
2006-07-05T15:16:35Z

Hello,

I am attempting to use validation.js from
http://tetlaw.id.au/view/blog/really-easy-field-validation-with-prototyp
e/ with form_remote_tag. The rails form helper binds the needed
Ajax.Updater to the onSubmit action of the form. The validation.js also
attempts to bind to the onSubmit of the form.

The logic that is needed is

if( valid.validate() )
{
...Ajax.Updater...
}

where valid is the validation object

How can I add this logic to the onSubmit that is added by the FormHelper
in the rails framework?

Alternatively, is anyone else using this validation library for
client-side validation in conjunction with rails and has a better
method?

Cheers,

Paul Shannon
Web Applications Developer

Codeweavers Limited

Tel: 0870 443 0888
Fax: 0870 443 0889

-------------- next part --------------
An HTML attachment was scrubbed...