开发者

Yii ajaxlink in partial

I'm using Yii framework and have small problem. Then 开发者_运维百科I include to the partial CHtml::ajaxLink, link stopping work as ajax, standart click is raised and performs redirect to another page. Can anyone help me? Thanks.


Just a supposition, but turn processOutput on when using partialRender with javascript. It's the fourth parameter when calling renderPartial:

$this->renderPartial('_view',array(params...),false,true)

ProcessOutput allows you to also load javascript when rendering with asynchronous calls or other stuff.


Turn firebug on and check for js errors. If there are any, post them here

There was something wrong with yii CHtml::ajax implementation, and it caused me similar bug to yours.


Maybe you not finishing document right? try with:

 Yii::app()->end();

And check differences in generated HTML between old version (which worked) and this one. Maybe some js lib not included?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜