Thanks for your reply, and I get your point, but I leave it to monorail so I can decorate the activerecord properties with appropriate validator attributes, and get client side validation virtually for free and server side validation that uses the same rule definitions. It works well for me, anyway :-) I just want it to validate each text box as I leave it, which you are right you can do when bypassing mr but I *really* don't want to, particularly as the prototype implementation works this way.
Cheers, Adam. 2009/9/19 Jan Limpens <[email protected]> > jquery is so easy to setup by itself, I never understood, why leave it to > mr, which, intrinsically, creates far more code than necessary. > > give your form a class="validated" and your inputs classes like "required > email date numbers..." > > and in your layout, or even better your global js file put something like > this: > > $("form.validated").validate(); > (after a reference to jquery.validate.js) > > that would be it. > > jan > > 2009/9/18 Adam Belshaw <[email protected]> > >> Is anybody using jquery for the validation via the MonoRail >> JQueryValidator extension etc? Can you get it to validate when leaving a >> field like the prototype integration does rather than waiting for the form >> to be submitted? I reckon it makes a big difference to how usable the form >> is. >> >> Cheers, >> >> Adam. >> >> >> > > > -- > Jan > > > > -- Adam Belshaw Internetware Limited Connect your Website with your Sage accounting software. Visit www.getconnect.co.uk for more information T: 0845 123 2920 F: 0845 123 2921 E: [email protected] W: www.internetware.co.uk Internetware Limited, i6, 6-8 Charlotte Square, Newcastle, NE1 4XF. Company No. 04433554. VAT Registration No. 796 5763 59 This message is intended for the designated recipient only and may contain privileged or confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
