CodeIgniter Forums
using jquery ajax in codeigniter ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: using jquery ajax in codeigniter ? (/thread-40977.html)



using jquery ajax in codeigniter ? - El Forum - 04-25-2011

[eluser]Pokhara[/eluser]
I want to use jquery's (.load) function in CI, should i place this jquery function in controller, view or js files ? I would basically like to call another file in the views when user click the button


using jquery ajax in codeigniter ? - El Forum - 04-25-2011

[eluser]InsiteFX[/eluser]
You can place it in the view or in a file, that's up to you.

If you use any $POST watch out for the CodeIgniter CSRF

InsiteFX