ajax jquery duplicate checker error - 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: ajax jquery duplicate checker error (/showthread.php?tid=33558) |
ajax jquery duplicate checker error - El Forum - 08-31-2010 [eluser]Corbee[/eluser] Hi, I tried to use validate plugin's remote parameter to check for email duplicate, but it appears that I'm not returning the correct value jquery understands This is my html code Code: <input class="required email" name="email" id="email"><br/> and here is my php code Code: function getemail() here is my ajax Code: $("#signupForm").validate Where did I do wrong? Thanks ajax jquery duplicate checker error - El Forum - 09-02-2010 [eluser]Nick_MyShuitings[/eluser] Quote:function getemail() first off I think your error is $this->db->post which is not a function of active record unless you've extended. Which would mean that $q prolly isn't getting any information and you're prolly not even hitting the return. It looks like you are wanting to do the following: Code: $this->db->select('Email'); That is if I understand that the purpose of this callback is to see if the email already exists in the database? |