Re: [Cppcms-users] Ajax based form validation
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-06-16 01:22:17
|
> Hi all, > > currently I am looking into a way to integrate client side form validation > into > a cppcms application. > I have looked around and found this nice jquery based one: > jQuery-Validation-Engine > https://github.com/posabsolute/jQuery-Validation-Engine > > The nice thing is that it provides a nice Ajax api - > https://github.com/posabsolute/jQuery-Validation-Engine#ajax-protocol > > Is there some way to reuse the defined validations (e.g. struct > login_form : public cppcms::form) with this api? You can do validation of each widget individually: http://cppcms.com/cppcms_ref/latest/classcppcms_1_1base__form.html#af7d0a7b4c760b43ea3161181906ee4d0 Look at the JSON-RPC guide on the cppcms wiki. So I guess you can. |