-
28 Mar 2012 11:56 AM #1
Answered: send an array through params Ext.Ajax
Answered: send an array through params Ext.Ajax
I need to send the equivalent of
http://example.com?event[completed]=true& event[name]=sample
but just not sure how to do this. I can easily get a singly value through just using params like below
I just can't work out how to send a array of data through. I've tried quite a few different things. anyone know how to do this?Code:params: { auth_token: user.authtoken, another_key: 'some value' }
-
Best Answer Posted by jonathansimmons
Found the answer here http://www.sencha.com/forum/showthre...ay+ajax+params
just wrap the key in quotes. like so:
Code:params: { "event[completed]": true },
-
28 Mar 2012 12:02 PM #2
Found the answer here http://www.sencha.com/forum/showthre...ay+ajax+params
just wrap the key in quotes. like so:
Code:params: { "event[completed]": true },


Reply With Quote