Hi,
Are you sure you are checking it correctly?
Your ajax updates work, you say. But when you check you get the whole
layout returned.
I would imagine your drop-down looking pretty strange with a full html
layout in it.

isAjax has always worked fins for me. If you had forgotten to include
RequestHandler you would se a big fat error on every page so I doubt
that is the problem.

Try the quick double-check. Just comment out those lines. If they
don't work the ajax should continue to function well without them. If
your ajax starts having problems then it's Firebug messing with you.

Hopefully that is all it is.
/Martin

On Nov 13, 9:55 am, keymaster <[EMAIL PROTECTED]> wrote:
> I use $ajax->observeField() to update on the change of a dropdown.
>
> Don't know why I never used Firebug Net option to check the response
> (I guess because the ajax update is happening fine), but recently I
> checked and found the response includes everything - the entire layout
> and the cake debug html at the bottom of the page.
>
> This, despite the following code I put in my appController:
>
> if ($this->RequestHandler->isAjax()) {
>                         $this->layout = 'ajax';
>                         $this->disableCache();
>                         Configure::write('debug', 0);
>
> }
>
> Any ideas why  the entire layout might still be in the response ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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