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
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
There's no reason why it can't be abstracted into something generic that
works with the existing validation system.
A quick search found this:
http://blog.adryjanek.eu/2009/01/15/symfony-12-using-sfform-with-jquery-validate-plugin/
Checkout the comments at the end
On Mon, 2009-11-02 at 06:26
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