CodeIgniter Forums
registration form (form_validation) and ajax without refresh page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: registration form (form_validation) and ajax without refresh page (/thread-40603.html)



registration form (form_validation) and ajax without refresh page - El Forum - 04-13-2011

[eluser]MrAmine[/eluser]
hi evryone
i have a simple form of registration with form_validation class but i want live validation(ajax) without refresh page
how can i do that
thx


registration form (form_validation) and ajax without refresh page - El Forum - 04-16-2011

[eluser]stormbytes[/eluser]
did you ever find your answer?


registration form (form_validation) and ajax without refresh page - El Forum - 04-16-2011

[eluser]InsiteFX[/eluser]
CodeIgniter from Scratch: Day 8 – AJAX

InsiteFX


registration form (form_validation) and ajax without refresh page - El Forum - 04-16-2011

[eluser]stormbytes[/eluser]
Hah was just thinking that! BUT - That's just a basic tutorial on Ajax->CodeIgniter. If you want to collect validation errors you'll have to create an array, picking each field->error (using form_error('field_name')) then JSON-it and pass it back to the Ajax function - THEN distribute each of the validation errors to separate tags <p></p> or whatever...