[web2py] Re: Redirect from inside a component

2013-01-31 Thread Loïc
... and it works fine! Thank you Anthony Le jeudi 31 janvier 2013 14:52:21 UTC+1, Anthony a écrit : > > redirect(..., client_side=True) > > Instead of doing a regular redirect, that simply sends a Javascript > command to the browser instructing it to replace the whole page with the > new locatio

[web2py] Re: Redirect from inside a component

2013-01-31 Thread Anthony
redirect(..., client_side=True) Instead of doing a regular redirect, that simply sends a Javascript command to the browser instructing it to replace the whole page with the new location. Anthony On Thursday, January 31, 2013 8:16:21 AM UTC-5, Loïc wrote: > > Thank you, but if I use "next" or "

[web2py] Re: Redirect from inside a component

2013-01-31 Thread Loïc
Thank you, but if I use "next" or "redirect" in my component's controler, the redirection is done in the component, not in the page that contains the component. For example, I have : -"Page1" which contains "component1" If I put redirect(URL('Page2')) in my "component1"'s controller, I will se

[web2py] Re: Redirect from inside a component

2013-01-31 Thread Lamps902
Why not use the process() method's "next" parameter? http://web2py.com/books/default/chapter/29/07?search=.accepted#The-process-and-validate-methods Otherwise, there's "redirect()" - http://web2py.com/books/default/chapter/29/07?search=redirect%28#Forms-and-redirection On Thursday, January 3