Client and server side field value checking

Emmanuel Seyman emmanuel.seyman at club-internet.fr
Wed Mar 9 14:13:24 UTC 2011


* Gervase Markham [09/03/2011 14:49] :
>
> At the moment, one would need to do this by reimplementing the
> check_can_change_field checks in Javascript. But that's more work,
> and there's a risk of them getting out of sync. Has anyone any ideas
> about how to make this less painful? I thought briefly about some
> sort of structured language and a Perl generator and a JS generator,
> or perhaps a Perl-to-JS autotranslator...

I've never tried this but, in theory, you can use Data::FormValidator to
define a form profile and use it in Javascript using the Data.FormValidator
module from OpenJSAN.

http://search.cpan.org/~markstos/Data-FormValidator-4.66/
http://www.openjsan.org/doc/u/un/unrtst/Data/FormValidator/

Emmanuel

_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list