[web2py] Ajax-form-submission: pass ALL form-elements

2013-05-31 Thread D.
Dear community, I'm using ajax to submit a form: $("#myform").submit(function() { ... ajax("{{=URL("do_stuff", user_signature=True)}}", ["element1", "element2", ...], "target"); return false; } This works very well. However, when #myform has many elements or is created/modified dynamically,

[web2py] AJAX form submission using CRUD in web2py

2012-04-06 Thread rahulserver
Is it possible to validate CRUD form fields using ajax without submitting the form in web2py? I have gone through the web2py online doc and have seen this link: http://web2py.com/books/default/chapter/29/11#Ajax-form-submission So we may do it using custom html. But I want to do it using CR

[web2py] AJAX form submission with image upload

2011-12-24 Thread Yarin
Merry Christmas I need to do an AJAX form submission for a basic image table. I'm following the strategy described here: http://web2py.com/books/default/chapter/29/11#Ajax-form-submission whereby I create an HTML form by hand, and have a SQLForm handle the submission. The record gets inserted fin

[web2py] ajax form submission

2011-06-08 Thread 黄祥
hi, i've tried to learn from http://web2py.com/book/default/chapter/10#Ajax-Form-Submission, is it possible to edit the ajax form submission? e.g. === db.py === db = DAL('sqlite://db.db') db.define_table('post', Field('your_message', 'text')) db.post.your_message.requires = IS_NOT_EMPTY() === d