[web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-25 Thread selecta
> So the solution to multiple forms using LOAD is to define a formname... I > guess... right this is the solution for multiple forms (for all pages, not just LOADed pages) this patch fixes something different: ONE form, multiple submit buttons

Re: [web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-23 Thread Tito Garrido
Looks like I could put it to work just defining the "formname" variable on form.accepts... so I've removed this patch to test and also work... So the solution to multiple forms using LOAD is to define a formname... I guess... On Sat, Apr 23, 2011 at 4:28 PM, Tito Garrido wrote: > Hi selecta, >

Re: [web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-23 Thread Tito Garrido
Hi selecta, Thanks for the quick response... I was debugging with firebug and this is what I got: so the type is correct... but I can't see the attribute... after I click on submit I can see the "was_clicked_to_submit" appearing on firebug and then it disappear... on the view I'm using a custom

[web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-23 Thread selecta
what did not work? what is should do is add a click event to each submit button and add a special property onclick $("[type=submit],[type=image]", this).click(function(e){ $ (this).attr("was_clicked_to_submit","YES"); }); if the form is submitted it searches for that property (was_clicked_to_submit

Re: [web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-23 Thread Tito Garrido
Hi selecta, I've tried your patch and didn't work for me... I'm having the same problem... with 2 LOAD forms the submit behavior is intermitent. Regards, Tito On Sat, Apr 23, 2011 at 3:57 AM, Tito Garrido wrote: > Wow! I just posted a message about this problem... +1 ! > > I'm using 2 forms w

Re: [web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-22 Thread Tito Garrido
Wow! I just posted a message about this problem... +1 ! I'm using 2 forms with LOAD on the same page and I got the same problem... it doesn't work on the first submit. On Wed, Apr 13, 2011 at 5:12 PM, selecta wrote: > done http://code.google.com/p/web2py/issues/detail?id=232 > > On Apr 11, 3:

[web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-13 Thread selecta
done http://code.google.com/p/web2py/issues/detail?id=232 On Apr 11, 3:44 pm, Massimo Di Pierro wrote: > No objection in principle but need to check implementation. Can you > please open an issue on google code and upload your propose patch. > Thanks. > > Massimo > > On Apr 7, 4:46 am, selecta w

[web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-11 Thread Massimo Di Pierro
No objection in principle but need to check implementation. Can you please open an issue on google code and upload your propose patch. Thanks. Massimo On Apr 7, 4:46 am, selecta wrote: > itsnt it annoying that when you have forms with multiple submit > buttons in a web2py component the button th

[web2py] Re: LOAD/web2py component improved web2py_trap_form

2011-04-11 Thread selecta
*bump* massimo will you include this? On Apr 7, 11:46 am, selecta wrote: > itsnt it annoying that when you have forms with multiple submit > buttons in a web2py component the button that is clicked to submit the > form is not submitted > here is a fix for web2py_ajax.html > > now you can have for