Yii的ajaxlink在部分部分、Yii、ajaxlink

2023-09-11 00:35:37 作者:Gaming丿领袖

我使用的是Yii框架,并有小的问题。 然后,我有到部分的cHTML :: ajaxLink ,链接停止工作,阿贾克斯,非标准点击升高并执行重定向到另一页。 谁能帮助我?谢谢你。

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.

推荐答案

只是一个假设,但转processOutput使用partialRender使用JavaScript当。这是调用的RenderPartial当第四个参数:

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

$这个 - >的RenderPartial('_观点,阵列(参数...),假的,真正的)

ProcessOutput允许您使用异步调用或其他的东西呈现时,还加载了JavaScript。

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