I have some JS which sends data from a row in a grid to the server as JSON.
The controller function receives the JSON in a request.vars key (not a value). This is awkward to find if there are other request.vars. Currently I am testing for lengths over 10. This was a quick hot fix because I added a request.var which is passed around the app and broke all of the ajax. Is there a way I can change the JS that the JSON is either: 1 - received as a value in request.vars with a given key so I know exactly where it will be. 2 - received in another way that the goal is still achieved. I tried to use the JS FormData object type but can't find it server side. The web2py ajax function almost does what I want, but: 1 - I have to give it a Name rather than an ID. I guess this is because it was built to be used with forms. 2 - What the page does with the returned JSON will become more complex in future. lastly. I will have to add the code via Email as it is not working in the google groups interface. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

