how to use ajax? |
[eluser]Unknown[/eluser]
hi , i am new person for code igniter please help me , how to use ajax in code igniter? thanking you!!!
[eluser]umefarooq[/eluser]
check this out it all about CI and ajax http://choosedaily.com/1052/9-ways-to-in...deigniter/
[eluser]ascotan[/eluser]
I use Prototype.js and submit an ajax request from javascript. I covert the javascript to JSON using mydata.toJSON() in the POST parameter of the AJAX request. Back in CI i grab the _POST and json_decode() it. Go munch on the data, restructure it for the javascript and then echo json_encode() it back to the browser. The javascript will then grab the response which you can validate. |
Welcome Guest, Not a member yet? Register Sign In |