[web2py] Calling Controller Function from javascript

2012-01-31 Thread Sanjeet Kumar
How to call the Controller function from javascript

Re: [web2py] Calling Controller Function from javascript

2012-01-31 Thread Bruno Rocha
script ... ajax('url/to/the/controller/function', [], 'target_element_for_the_return'); ... /script the ajax function is included in web2py_ajax.js, the second argument is a list/array ['input'] to be used if you want to send form input values to the server, you can leave it null with an empty