[web2py] Re: One submit for multiple forms. Is it possible?

2010-01-24 Thread mdipierro
Hard to debug but I think something is wrong here.. $("form").each(function(){ var submitButton = $(this).find("input[type='submit']"); $(submitButton).bind("click", function(e){ ... $("form").each(function(i){ ... for each form in page, find the submit button and bind to click a fun

[web2py] Re: One submit for multiple forms. Is it possible?

2010-01-23 Thread ionel
@massimo I have a jQuery solution that show the errors on validation with one submit and multiple forms. Anyway, I have one problem: for a second POST, despite the modified data to post to the server, the second response is identical to the first response. I don't know if this is a jQuery or a web2

Re: [web2py] Re: One submit for multiple forms. Is it possible?

2010-01-19 Thread Thadeus Burgess
Cant you change it to use SQLFORM.factory instead of crud?? -Thadeus On Tue, Jan 19, 2010 at 7:42 AM, mdipierro wrote: > The plugin sends one post after the other via ajax. The accept > mechanism should work in this case but I how do you handle errors in > this case?  The JS in the link does

[web2py] Re: One submit for multiple forms. Is it possible?

2010-01-19 Thread mdipierro
The plugin sends one post after the other via ajax. The accept mechanism should work in this case but I how do you handle errors in this case? The JS in the link does not contemplate the possibility that the posts do not validate. On Jan 19, 5:55 am, ionel wrote: > No, because I create the forms

[web2py] Re: One submit for multiple forms. Is it possible?

2010-01-19 Thread ionel
No, because I create the forms with crud from 3 related tables. I found a jQuery solution at: http://stackoverflow.com/questions/315912/posting-submitting-multiple-forms-in-jquery but I'd like to know if web2py itself has a mechanism to do that. Thank you. On Jan 18, 11:16 pm, Jason Brower wr