Oh yes, if you want to redirect outside of a response div you need to use Javascript to break out not PHP as symfony will load your redirect into the div.
something like window.redirect should do it 2009/4/20 Gareth McCumskey <[email protected]> > As a quick response try adding the option "script"=>true ... I find with > Ajax actions this often catches me out > > 2009/4/20 DEEPAK BHATIA <[email protected]> > > You mean your home/mypage is opening in the div errorlogin when you are >> successful. >> >> >> On Mon, Apr 20, 2009 at 3:21 AM, Guychmyrat Amanmyradov < >> [email protected]> wrote: >> >>> Hello, >>> i'm tring to check login with ajax. >>> on main page, there is a "login" link. when you click on it, a div is >>> opening. And you are typing email/password in there. And checking error with >>> ajaxs. >>> >>> form_remote_tag(aaray('update'=>'errorlogin', 'url'=>'login/login')) >>> >>> it works perfect to check errors. >>> But when it success, the logged page opens in that "errorlogin" div. >>> >>> in action, if it successfully passes control i am redirecting to the >>> "home/mypage" >>> but it opens in div. >>> >>> How can i solve this problem ? >>> >>> Thank you. >>> >>> ------------------------------ >>> Yahoo! Türkiye açıldı! >>> Haber, Ekonomi, Videolar, Oyunlar hepsi Yahoo! Türkiye'de! >>> www.yahoo.com.tr <http://tr.yahoo.com/> >>> >>> >>> > > > -- > Gareth McCumskey > http://garethmccumskey.blogspot.com > twitter: @garethmcc > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
