I found this for you:
http://www.plus2net.com/html_tutorial/button-linking.php
Try this:
<INPUT type="button" value="Finalizar"
onclick="location.href='{{=URL(r=request,f='atualizar')}}'"/>
Noel
On Sep 6, 7:07 am, Fabiano Faver <[email protected]> wrote:
> I'm tryng to put a button thaat calls a action which in the end will
> redirect to another page. but its like the function is not known.
>
> I've tryed in view:
> <INPUT type="button" value="Finalizar"
> onclick="{{=URL(r=request,f='atualizar')}}"/>
> and:
> <INPUT type="button" value="Finalizar"
> onclick="document.location={{=URL(r=request,f='atualizar')}}"/>
>
> in controller:
> def atualizar():
> #add some code here later
> redirect(URL('index'))
>
> butthis is what I got:
> Uncaught ReferenceError: atualizar is not defined
>
> I'm still learning web2py and web-programming, so what i'm not seeing here?