Welcome Guest, Not a member yet? Register   Sign In
Return array to AJAX
#4

[eluser]gon[/eluser]
You should convert the array to JSON, and send it to the browser.
Then just evaluate it and you get the data as a javascript object,
so you can populate the select.

And you can change the array structure before converting it to JSON,
to make the JSON data easier to use with javascript.

Cheers.


Messages In This Thread
Return array to AJAX - by El Forum - 04-06-2008, 06:38 PM
Return array to AJAX - by El Forum - 04-06-2008, 07:00 PM
Return array to AJAX - by El Forum - 04-06-2008, 07:28 PM
Return array to AJAX - by El Forum - 04-07-2008, 03:47 AM
Return array to AJAX - by El Forum - 04-07-2008, 08:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB