[web2py] Buttons in forms

2011-01-14 Thread annet
I have a form containing two buttons, one to update data and one to close the window: {{=INPUT(_type='button',_value='Update data',_onclick=URL(r=request,f='update_form',args=[company[0].id]))}} {{=INPUT(_type='button',_value='Close window',_onclick='closeWin()')}} The second button works, the

Re: [web2py] Buttons in forms

2011-01-14 Thread Jonathan Lundell
On Jan 14, 2011, at 7:41 AM, annet wrote: I have a form containing two buttons, one to update data and one to close the window: {{=INPUT(_type='button',_value='Update data',_onclick=URL(r=request,f='update_form',args=[company[0].id]))}} {{=INPUT(_type='button',_value='Close