Note, in that case, you won't be taking advantage of any of the built-in 
form processing, such as input validation and return/display of form errors. 
To get the validation, you could use the .validate_and_insert() method, but 
you'd still have to manually process and deal with the potential validation 
errors returned.
 
If you want a regular form submission and the usual form processing but 
simply want to submit without a submit button, maybe just use something like 
jQuery .submit(): http://api.jquery.com/submit/
 
Anthony
 
On Saturday, July 2, 2011 6:44:04 AM UTC-4, dorasan wrote:

> 'Insert' method. That is what I wanted to know. 
> Thank you so much!!
>
> 2011/7/2 cjrh <caleb.h...@gmail.com>
>
>> In the method called by the AJAX event, you don't need the form at all. 
>> You can just do a straight insert. You must pass the data to be inserted as 
>> part of the AJAX call, either via args, or post data or some other method on 
>> the URL. Then, inside writing(), just do a direct DB insert as documented 
>> here: http://web2py.com/book/default/chapter/06#insert
>
>
>

Reply via email to