[jQuery] Re: Passing array to $.ajax()

2009-02-27 Thread gaz
Have recently found a solution to this problem: $.post() accepts a JavaScript object for post data e.g. {name1 : value1, name2 : value2}, but you need to specify the same object property multiple times. Therefore you can create this property once, put an array into it and then push your values in

[jQuery] Re: Passing array to $.ajax()

2009-02-11 Thread James
Can you submit your request via POST? If so, try using: serializeArray(): http://docs.jquery.com/Ajax/serializeArray and inserting the result as the data part of your AJAX request. else, see if serialize(): http://docs.jquery.com/Ajax/serialize can do the work for you. On Feb 10, 8:43 pm, "Konst