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