Yii ajaxlink in partial

前端 未结 3 1915
南方客
南方客 2021-01-07 09:45

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 per

相关标签:
3条回答
  • 2021-01-07 10:32

    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.

    0 讨论(0)
  • 2021-01-07 10:48

    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.

    0 讨论(0)
  • 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 讨论(0)
提交回复
热议问题