[Catalyst] redirect and ajax

Jason Galea lists at eightdegrees.com.au
Mon Mar 7 12:51:24 GMT 2011


AFAIK you would need to return the uri to the browser, as your ajax
response and redirect the browser using javascript.

On Mon, Mar 7, 2011 at 10:24 PM, Cylon Toaster <cylontoaster at gmx.de> wrote:
> Hello,
>
> I use an ExtJS-form, which sends an AJAX-request to the server. Depending on
> the server-results the user should now be redirected to another page,
> but somehow it doesn't work any more, when I use AJAX-requests. Normal forms
> are no problem.
>
> I have used constructions like this:
>    $c->res->redirect($c->uri_for($c->controller('aaa')->action_for('bbb')));
> or ...
>    $c->detach('/aaa/bbb');
>
> Any hint for me?
> Thank u.
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



More information about the Catalyst mailing list