Validation error with jquery(ajax) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Validation error with jquery(ajax) (/showthread.php?tid=47687) |
Validation error with jquery(ajax) - El Forum - 12-18-2011 [eluser]Unknown[/eluser] Hi all, I am currently working on submitting a form and once it is submitted it will validate using CI then return it out using ajax. I have currently tried something but i am not having too much luck getting it to work. Can someone tell me what i'm doing wrong here: JS Code: $(document).ready(function() { Controller Code: $this->load->library('form_validation'); The odd part is when i refresh the page (before submitting) all i see is this {"result":"false","errors":""} I don't understand why i am only getting this instead of the forms which i should be viewing any ideas? |