On Jul 25, 3:59 pm, Steven Chan <[EMAIL PROTECTED]> wrote:
> Hehe,
>
> Finally found out what was going on. It seems that I was using a
> Controller::redirect() in the action that I called to render another
> action. Because of this HTTP redirect, Firefox immediately would drop
> the X-Requested-With header, plus a few others. However, the HTTP
> redirect worked with IE6/7, weird... I used a setAction instead.

So many ways to self-sabotage :D. Glad you found the reason.

you could if you want override the redirect method in your app
controller so that it does

if (Ajax||requested)
     if (same controller)
          setAction
     else
          echo requestAction
          die
else
     parent

in that way you can 'safely' call $this->redirect in your code without
worrying about cascading layouts (etc.) further

Cheers,

AD


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to