And there appears to be a plugin that does it: http://www.symfony-project.org/plugins/sfJqueryFormValidationPlugin
On Mon, 2009-11-02 at 06:26 -0800, HAUSa wrote: > Yeah, but it is not in my profit as a developer to develop the > validation twice (in JS and PHP). > That's why I want to check the value by use of AJAX from the sf Form > validator. > > On 2 nov, 15:16, David Ashwood <da...@inspiredthinking.co.uk> wrote: > > When you generate the field - you'd need to annotate with some kind of > > markup - which then js could work with for validating in the browser. > > > > A simple but crude approach would be to use the class of the element: > > > > <input ...class="displayClass numeric-30" > > > > Then with js - obtain a collection of all classes starting with numeric > > and parse it's full name for the extra data. > > > > On Mon, 2009-11-02 at 06:01 -0800, HAUSa wrote: > > > Is it possible to check form values without the user submitting it? > > > It seems that the validators set in the form class only work when you > > > submit. > > > > > I want to have that when a user completes a field (onblur), the > > > entered value is checked immediately. > > > I know I can do this with AJAX, but how do I make the call to find the > > > corresponding validator? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---