Welcome Guest, Not a member yet? Register   Sign In
communication with javascript
#1

[eluser]Unknown[/eluser]
Hello all

I have a view that's a mix of Javascript and PHP.

I want to take some info stored in Javascript, send it to a CI helper, send the results back to Javascript and display them in the view.

I'm at a loss as to how to make this happen.

Has anyone done anything like this before?

Anon
#2

[eluser]CroNiX[/eluser]
Sure, it's fairly common. You just use ajax in your javascript to call a CI controller/method url (which can load/use helpers or anything else), and have that do whatever server side processing that needs to be done and then return JSON, HTML or whatever you need back.
#3

[eluser]CroNiX[/eluser]
Check this thread.




Theme © iAndrew 2016 - Forum software by © MyBB