Hi,

A while ago I took on the challenge to get some ajax stuff to work
with cake.
I was able to get it working the way I wanted, but now, by updating to
the latest version it doesn't work anymore.

Did something releated to ajax change?
The problem I get is that the default layout is rendered, the the
entire page is displayed in my div

This is what I have in my controller:

   var $components = array('RequestHandler');
   var $helpers = array('Html', 'Javascript', 'Ajax');

  function output(){
    $this->set("result", $this->Shoutbox->findAll(null, null, "date
DESC", 25, null, false));
    $this->render("output", "ajax");
  }


When searching the net I also tried to add this:
    function beforeFilter(){
      if($this->RequestHandler->isAjax()){
      Configure::write('debug', 0);// and forget debug messages
      $this->layout = ''; //or try with $this->layout = '';
   }
}


When trying to look for the cause I found that when I did "svn update"
it stopped working.

Hope someone knows the awnser

Thanks,
Crazy
--~--~---------~--~----~------------~-------~--~----~
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