RSS

ExtJs Ajax Pass Parameter as Array

01 Aug

Sometimes we need to pass multiple values for one parameter in ajax, that is pass an array as parameter, in ext js we can acheive this as,

params:{

param1: ‘value’,

param2: [‘value1′,’value2’,…],

}

Here param2 has an array of values….

 
1 Comment

Posted by on August 1, 2011 in Ext JS

 

Tags: , , , , , ,

One response to “ExtJs Ajax Pass Parameter as Array

  1. Bert

    October 22, 2011 at 11:58 am

    For Ext.Ajax.request(Object o) to correctly generate a GET or POST request containing an unserializable array, I had to use:

    “params2[]” instead of params2

    Note the quotes and square brackets.

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: