Right, i must be more specific.
I have javascript code that call back (by ajax) a controller function
in which i compute variables sent from ajax and i redirect forward a
new address with args.
Python code is simple but doesn't redirect using redirect(URL(...)).
Is it possible redirect from python code (raising something), or i
must return back to javascript?
Thanks.

On Nov 14, 4:34 pm, qqsaqq <sla...@gmx.net> wrote:
> I assume you mean a redirect from within the browser, after recieving
> the ajax response and evaluating the retrieved data.
> In that case you must set the window.location object in your
> javascript. In the view you could do smthg like that:
>
> <script>
> //... your callback code here
> window.location.href = {{=URL("way2go.html")}};
> </script>
>
> On 14 Nov., 10:23, leone <handja...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi all,
> > how can I use redirect() inside a ajax callback?
> > Thanks in advance
> > leone

Reply via email to