Welcome Guest, Not a member yet? Register   Sign In
how to use ajax?
#1

[eluser]Unknown[/eluser]
hi ,
i am new person for code igniter please help me ,

how to use ajax in code igniter?
thanking you!!!
#2

[eluser]umefarooq[/eluser]
check this out it all about CI and ajax

http://choosedaily.com/1052/9-ways-to-in...deigniter/
#3

[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.




Theme © iAndrew 2016 - Forum software by © MyBB