Zoe and Gavin .com

This is what happens when nerds marry

There aren’t that many tutorials on how to use jQuery and Code Igniter together. I’ve written a bit on how to do some Ajax with jQuery and Code Igniter here, on the Code Igniter Forums. With jQuery, Ajax is pretty easy to do, once you figure out how to get it working once. The toughest part is figuring out how to have it send POST data to the right function of the right controller. If you want a working example, Download it Here. Be sure to read the README.txt! Don’t forget, the important issue when doing javascript of any kind is to make sure it degrades nicely - it has to work even if Javascript is turned off!

3 Responses to “jQuery and Code Igniter”

  1. handoyo Says:

    Hi Gavin,i got errors with your code.It says $ is not defined..Thanks a lot..

  2. Zoe Says:

    Hey, Handoyo — you probably need to include your jquery files in your header. Jquery defines $. You can get jquery here: JQuery.com

  3. handoyo Says:

    Ok,i’ll try it out..Thanks

Leave a Reply