It generally helps to show some code. Anyway, if you call redirect() within
an action being accessed via Ajax and you want to redirect the top-level
page (i.e., not just redirect the Ajax request itself), then you can do:
redirect(url, client_side=True)
which will reload the entire page once the Ajax request returns.
Anthony
On Thursday, January 7, 2016 at 11:50:51 AM UTC-5, Henk Hendricks wrote:
>
> Hello All,
>
> Is 't possible to trigger a page refresh from an Ajax callback controller?
> I've an Ajax controller which returns an SQLFORM. This form returns its
> data to the Ajax controller for the correct form processing.
> I've tried a redirect(URL('...')), but this results in a page in a page
> (Like a set of Matryoshka dolls), i.e. the page is not redirected but
> loaded in place of the form.
>
> Another possibility I tried, was to let the target page do the form
> processing, but it seems that recreating a SQLFORM does not allow
> processing of a form with the same properties.
>
>
> --
> Greetings,
>
> Henk Hendricks
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.