我正在尝试使用cakephp中的ajax更新多个div而没有运气。 我按照一些教程 http://cakebaker.42dh.com/2006/06/29/how-to-update-multiple-divs-with-ajax/ http://www.reversefolds.com/articles/show/ajax
但它仍无法在firefox 3.5.2上运行
我在做:
在视野中 echo $ ajax-> link('link text','/ controller / update', array('update'=> array('div1','div2')) );
// create the div code rather than hard-coding <div id='div1'>
echo $ajax->div('div1');
echo $ajax->divEnd('div1');
echo $ajax->div('div2');
echo $ajax->divEnd('div2');
控制器中的: function update(){$ this-&gt; layout ='ajax'; }
我错过了什么?我正在使用cakephp 1.2.3.8166非常感谢