Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use HTML::FormFu for jQuery AJAX form validation?

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.

like image 239
A. Murka Avatar asked Jul 22 '09 06:07

A. Murka


People also ask

How can you do validation in Ajax?

Enable the submit button in the input form. If the <valid/> element value is false, set the HTML of the validationMessage div element in Catalog ID field row to "Catalog Id is not Valid". Disable the submit button, and set the values of the other input fields. Next, run the Ajax application in JDeveloper 10.1.

Can you use Ajax JSON to validate form data?

If you not know how to validate form data by using Codeigniter Form validation library by using Ajax and receive response in JSON data type. In this post you can find Form validation in Codeignter by using Ajax jQuery and JSON.


1 Answers

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

like image 64
Sailab Rahi Avatar answered Sep 27 '22 23:09

Sailab Rahi