Re: [web2py] how to get request.vars if var name is like v[0].op

2011-10-13 Thread juanduke
Thanks for the reply!! I resolved this way: On the client side: add one more parameter to the request, the lenght of the array, ( arrayLenght ) On the server side: get the request.vars.arrayLenght create an empty list "data" iterate in range (0 to arrayLenght) and for each step use: myKey1

Re: [web2py] how to get request.vars if var name is like v[0].op

2011-10-13 Thread Jonathan Lundell
On Oct 13, 2011, at 6:08 AM, juanduke wrote: > Have a question (possible very simple). > > In my view, I've some js code that append data to a js array like this: > myarray.push({someKey: "someValue", anotherKey: "another value"}) > after a few pushes, I'm gettin an array like this > myarray[0] :

[web2py] how to get request.vars if var name is like v[0].op

2011-10-13 Thread juanduke
Hi all: Have a question (possible very simple). In my view, I've some js code that append data to a js array like this: myarray.push({someKey: "someValue", anotherKey: "another value"}) after a few pushes, I'm gettin an array like this myarray[0] : {someKey: "someValue", anotherKey: "another valu