如何使用HTML::FormFu进行jQuery AJAX表单验证?

时间:2021-12-01 08:08:40

Are there any examples I can look at that use HTML::FormFu with AJAX form validation and submission? I would really not like to write my validation routines three times (once in JS, once in FormFu constraints, and once in DBIC models), so I'd really like a way that's integrated with HTML::FormFu::Model::DBIC if possible.

有没有什么例子,我可以看看使用HTML::FormFu使用AJAX表单验证和提交?我真的不想写三次验证例程(一次在JS中,一次在FormFu约束中,一次在DBIC模型中),所以我真的想要一种与HTML:::FormFu::Model::DBIC集成的方式(如果可能的话)。

1 个解决方案

#1


1  

Use JQuery Validation Engine that submits form to PHP and returns the fancy error boxes if there is any validation required. Have a look at this link: JQuery Validation

使用JQuery验证引擎将表单提交给PHP,如果需要验证,则返回漂亮的错误框。看看这个链接:JQuery验证

#1


1  

Use JQuery Validation Engine that submits form to PHP and returns the fancy error boxes if there is any validation required. Have a look at this link: JQuery Validation

使用JQuery验证引擎将表单提交给PHP,如果需要验证,则返回漂亮的错误框。看看这个链接:JQuery验证