Welcome Guest, Not a member yet? Register   Sign In
Implementing Ajax in CI forms
#1

[eluser]Unknown[/eluser]
Hi.
I am using CodeIgniter since the last 4-5 months.
My requirement is:
Whenever I submit a page from my view, I want it to invoke a controller in the background and then give the success/failure message back to the view. I have already done this without using ajax but want to use ajax now.
Please share some sample code with me.

Thanks.
#2

[eluser]Otemu[/eluser]
Check out this tutorial http://net.tutsplus.com/tutorials/php/co...ay-8-ajax/
#3

[eluser]Unknown[/eluser]
[quote author="Otemu" date="1353761256"]Check out this tutorial http://net.tutsplus.com/tutorials/php/co...ay-8-ajax/[/quote]

I already watched this video. Nothing is clear here.
#4

[eluser]jmadsen[/eluser]
the process is the same, except you call the form with an ajax function & you must return a json string

https://www.google.com/search?q=codeigni...=firefox-a

brings 1,140,000 results - maybe you can try one or two others and come up with some concrete questions of what you don't understand




Theme © iAndrew 2016 - Forum software by © MyBB