hi
i am thinking the solution to this is staring me in the face but cannot seem to
work it out!
I am making a call to the server via ext.ajax.request and i want the server to
pass back an array for javascript to use.
I am currently passing the array back using SerializeJSON(theArray), however in
JS if i use the Ext.util.JSON.decode(result.theArray); it is not turning it
back into an array... it just prints a string '[1,2,3]'
i have tried the alternative arrayToJSON function (which is part of the toJSON
library) but JS recieves the array and prints it as:
"{"data>":["data":"1","data":"2","data":"3"]}" and i dont have a clue how to
convert that back into a javascript array of '1,2,3'
would appreciate any help, thanks
~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342923
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm