jquery post & ci form validation |
[eluser]Nick Husher[/eluser]
It's maybe slightly bad practice, but you'll need to use a custom validation rule that's described about halfway down the Form Validation page. In the controller method you're using to decode the ajax request, add this validation rule: Code: $this->form_validation->set_rules('a','JSON Object','required|callback__handle_object'); And in the same controller, add this function: Code: function _handle_object($json_object) { This code is untested, so it might need some massaging. |
Messages In This Thread |
jquery post & ci form validation - by El Forum - 01-21-2009, 08:00 AM
jquery post & ci form validation - by El Forum - 01-21-2009, 10:11 AM
jquery post & ci form validation - by El Forum - 01-21-2009, 12:17 PM
jquery post & ci form validation - by El Forum - 01-21-2009, 02:15 PM
jquery post & ci form validation - by El Forum - 01-22-2009, 03:06 AM
jquery post & ci form validation - by El Forum - 01-22-2009, 09:25 AM
|