-
20 Apr 2009 7:40 AM #1
post an array in ajax request
post an array in ajax request
Hi I am using Ext.ux.FileUploader extension to upload files.
While making ajax request I want to pass array as a parameter
How can i pass array as a parameter?Code:// Simple ajax form submission Ext.Ajax.request({ form: 'some-form', params: 'foo=bar' });
Is that possible?
Thanx in advance.............


-
20 Apr 2009 7:56 AM #2
I believe you should be able to pass an array as a parameter.
Code:// Simple ajax form submission Ext.Ajax.request({ form: 'some-form', params: { paramName: [x, y, z] } });
-
20 Apr 2009 7:59 AM #3Sencha - Community Support Team
- Join Date
- Nov 2008
- Location
- San Diego, Peoples' Republic of California
- Posts
- 2,040
- Vote Rating
- 7
params: { array: Ext.encode(the_array) }
You have to json_decode() $_REQUEST['array'] on the server side (PHP example, use whatever replacement for your server-side)
-
3 Aug 2011 8:36 PM #4
-
25 Apr 2012 12:59 AM #5
-
10 Dec 2012 9:57 PM #6


Reply With Quote

