[web2py] Re: cancel button in update and create work differently [closed]

2010-06-01 Thread annet
Setting the cancel button to: form[0][-1] [1].append(INPUT(_type=button,_value=Cancel,_onclick='javascript:history.go(-1);')) at least gives the user a way to cancel the function, not the way I wanted it, but it's better than getting an error. Annet

[web2py] Re: cancel button in update and create work differently [closed]

2010-06-01 Thread Iceberg
history.go(-1) will not work if the current page is the first page of current browser session. Will this help you? INPUT TYPE=RESET VALUE=Start All Over On Jun1, 8:00pm, annet annet.verm...@gmail.com wrote: Setting the cancel button to: form[0][-1]

[web2py] Re: cancel button in update and create work differently [closed]

2010-06-01 Thread annet
Yes, you're right, I hadn't thought of that. Thanks for providing me with a better solution. Kind regards, Annet.