Re: AJAX and auth redirection

2008-03-28 Thread Dardo Sordi Bogado
if isAjax() return in the view: window.location = '/url/to/redirect'; On Fri, Mar 28, 2008 at 7:07 PM, Novice Programmer <[EMAIL PROTECTED]> wrote: > Hello again, > > i am having a comments section on my website. Only registered user can post > comments. I have added Auth to my CommentsControl

AJAX and auth redirection

2008-03-28 Thread Novice Programmer
Hello again, i am having a comments section on my website. Only registered user can post comments. I have added Auth to my CommentsController and provided an ajax element called as ajax_login(asking user name and password to it) which Cake renders if the user is not logged in but still tries to po