[Catalyst] redirect and ajax

piccard piccard at web.de
Mon Mar 7 13:33:53 GMT 2011


> AFAIK you would need to return the uri to the browser, as your ajax
> response and redirect the browser using javascript.
yes, thank u, this was my emergency-solution. I just thought it could 
also be done by the server, more elegantly ;-)


>
> 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/
>>
>
> _______________________________________________
> 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