![]() |
automatically goes to controller file. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: automatically goes to controller file. (/showthread.php?tid=27622) |
automatically goes to controller file. - El Forum - 02-16-2010 [eluser]Unknown[/eluser] I tried javascript on my view file for client side validation to compare the password entered in two text boxes. Please see to the code below. Code: function pwdCompare() { In the Controller file I called the view file as follows Code: $this->load->view('profile'); The issue is,in View file the client side validation is working perfectly and displays the error in alert box. When the user clicks on the "ok" in alert box. The textbox gets focused and loads automatically to controller file and runs the code on that file. But, I want only after the user enters the right value, the code on the controller side should run. where I have went wrong? and how can i fix it? am a beginner, so please someone help me... |