jquery post - 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: jquery post (/showthread.php?tid=23527) |
jquery post - El Forum - 10-13-2009 [eluser]tirso[/eluser] hi to all I am using jquery to post my form, In my controller I was processed the posted value successfully, my problem now is redirect was not work. thanks in advance Tirso here is my javascript Code: $.post("<?php echo site_url('jquerypost/form_submit_redirect') ?>",$("#formsubmit").serialize()) in my controller Code: function form_submit_redirect() jquery post - El Forum - 10-13-2009 [eluser]thinkigniter[/eluser] From Userguide Code: redirect('/login/form/', 'refresh'); Your Code Code: redirect('default_c'); NO refesh and only the controller no function within controller... Good Luck jquery post - El Forum - 10-13-2009 [eluser]tirso[/eluser] hi thinkigniter, form_submit_redirect - is my function under "jquerypost" controller. The default_c is my default controller. If I use native php code as an action of my forms instead of using jquery it was redirect to my default_c controller. Thanks jquery post - El Forum - 10-14-2009 [eluser]Zeeshan Rasool[/eluser] Did you check redirecting to a function inside your current controller (jquerypost) ? |