Welcome Guest, Not a member yet? Register   Sign In
Javascript array to codeigniter controller
#9

[eluser]Nick Husher[/eluser]
[quote author="audiopleb" date="1224248357"]@narkaT - I don't think that is what he's talking about. That is not a js array.[/quote]

Yes, but Javascript and PHP are not the same language. You have to step into a lingua franca to get from one to the other. He and I are suggesting submitting the data to the server via form-based POST. You could pass a POST with a JSON object in it as well, but that seems needlessly complex.

Generally you can't pass a data structure in raw format between operating environments, which is why JSON and XML are so valuable--they can be handed around in a language-ignorant way. On the other hand, actually making use of those technologies in a maintainable way can be painful.


Messages In This Thread
Javascript array to codeigniter controller - by El Forum - 10-16-2008, 07:15 AM
Javascript array to codeigniter controller - by El Forum - 10-16-2008, 08:31 AM
Javascript array to codeigniter controller - by El Forum - 10-16-2008, 08:52 AM
Javascript array to codeigniter controller - by El Forum - 10-16-2008, 06:35 PM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 01:52 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 01:59 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 02:06 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 02:11 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 06:41 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 06:42 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 07:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB