|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by JazzcatCB1 in JavaScript, JSON
I have created a mutlidimensional array in JS that looks like this:
myarray = [];
myarray[0] = [];
myarray[0]['count'] = 8;
myarray[0]['id'] = 12;
myarray[1] = [];
myarray[1]['count'] = 5;
myarray[1]['id'] = 28;
myarray[2] = [];
myarray[n]['count'] = 12;
etc.
I'm trying to pass it along as a FBJS Ajax.post query string, but this doesn't work
new Ajax.post(url, {"myarray": myarray});
It appears that I must convert myarray to a string, but I'm not sure how this is done.
Here is a link to FBJS Ajax.post:
http://wiki.developers.facebook.com/index.php/FBJS/Examples/Ajax
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625