Welcome Guest, Not a member yet? Register   Sign In
passing data from js to controller
#1

[eluser]Giorgio Nordo[/eluser]
I need to pass a data (just a numeric value) from a javascript function contained in a view to a controller.
I tryed to generate a cookie inside the javascript and to restore it inside the constructor of my controller by means of $this->input->cookie.
It seems that the value is not immediately available to the above CI method and in order to obtain the desired effect I have to manually refresh the page.
Obviously this is bad :-(

Some idea?


Messages In This Thread
passing data from js to controller - by El Forum - 03-04-2011, 11:11 PM
passing data from js to controller - by El Forum - 03-05-2011, 06:01 AM
passing data from js to controller - by El Forum - 03-05-2011, 06:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB