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
-~----------~----~----~----~------~----~------~--~---