1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    79
    Vote Rating
    1
    Answers
    7
    jonathansimmons is on a distinguished road

      0  

    Default 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
    Code:
    params: {
    	auth_token: user.authtoken,
            another_key: 'some value'
    }
    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?

  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
    },

  3. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    79
    Vote Rating
    1
    Answers
    7
    jonathansimmons is on a distinguished road

      0  

    Default


    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
    },

Tags for this Thread