[web2py] Re: button calling a action

2011-09-06 Thread Massimo Di Pierro
you can do {{=A('clickme',callback=URL())}} and the URL is called via ajax. You can also pass a target="..." the id of a DIV where to post the result and a delete='tr' which will delete the tr including the link. On Sep 6, 3:51 pm, pbreit wrote: > That's how regular web2py form handling work

[web2py] Re: button calling a action

2011-09-06 Thread pbreit
That's how regular web2py form handling works.

[web2py] Re: button calling a action

2011-09-06 Thread Fabiano Faver
Thanks Noel and Anthony both have worked! what it was worrying me is that I didn't want to just redirect the user, it will have to run some code and will redirect to specific pages based on user group and data on page. I guess i would put these codes in a page anyway and redirect, but perhaps i

[web2py] Re: button calling a action

2011-09-05 Thread Anthony
I think that's a Javascript error, not a web2py error. You probably need to put the URL in quotes, so: onclick="document.location='{{=URL(r=request,f='atualizar')}}'" Anthony On Monday, September 5, 2011 3:07:11 PM UTC-4, Fabiano Faver wrote: > > I'm tryng to put a button thaat calls a action

[web2py] Re: button calling a action

2011-09-05 Thread Noel Villamor
I found this for you: http://www.plus2net.com/html_tutorial/button-linking.php Try this: Noel On Sep 6, 7:07 am, Fabiano Faver 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 v