I use jQuery like this:
postData = {'id': 12, 'data': [{'name': 'myname', 'value': 'myvalue'},
{'name': 'myname2', 'value': 'myvalue2'}]};
$.post(url, postData, function(){
});
At backend, I got the post data from web.input() like this:
<Storage {'id': u'12', 'data[0][name]': u'myname', 'data[0][value]':
u'myvalue', 'data[1][name]': u'myname2', 'data[1][value]': u'myvalue2'}>
My question is how can i get the data field as a list directly.
thanks.
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/webpy/-/GEsZ5eFCMx0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.