CodeIgniter Forums
Form Submit With jQuery - 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: Form Submit With jQuery (/showthread.php?tid=35346)



Form Submit With jQuery - El Forum - 10-26-2010

[eluser]RedIgniter[/eluser]
Hello fellow coders, I have a question about form submission. How do I make the form to submit without refreshing the page, like when the user clicks submit it just flashes, or no effects just returns values without refreshing the page.

Thanks in advance.


Form Submit With jQuery - El Forum - 10-26-2010

[eluser]andyy[/eluser]
jQuery + CodeIgniter = your solution.

http://jquery.com
A plugin I like and use that makes things super easy: http://malsup.com/jquery/form/
Some tutorials to help: http://codeigniter.com/wiki/Category:Help::Tutorials - look for tuts by Burak Guzel and Derek Allard

Your form will use jQuery to submit to a method created with CodeIgniter and usually posts back some kind of information to display to the user, activate another jQuery function, refresh a DIV, etc Smile.