2015-11-18 22:57:33 2752次浏览 0条回答 0 悬赏 10 金钱

是这样的,想通过dropDownList改变,用ajax刷新table和checkBoxList 这2个地方

现在是这样写的,但只能刷新一个列表,checkboxlist要怎么在同一个动作里刷新?

//VIEW
echo CHtml::dropDownList('production_time','', $production_time,
//Ajax刷新变更列表
    array(
        'ajax'=>array(
            'type'=>'POST',
            'url'=>Yii::app()->createUrl('qa/GetChangelistinfo'),
            'update'=>'#table',
            'data'=>array(
                'production_time'=>'js:$("#production_time").val()',
                'product'=>'js:GetQueryString("product")',
            ),
        ),

    )
)."<br>";

//checkboxlist部分
echo CHtml::checkBoxList('tester','0',$tester,array('separator'=>'  ','labelOptions'=>array('style' => "display: inline-block")));


//table部分
<tbody id="table">
    <!--<meta charset=GB2312>-->
    <?php $this->renderPartial('_changelist', array('changelist'=>$changelist)); ?>
</tbody>
    没有找到数据。
您需要登录后才可以回答。登录 | 立即注册
gclgrstc
实习生

gclgrstc

注册时间:2015-11-18
最后登录:2015-12-21
在线时长:0小时43分
  • 粉丝0
  • 金钱10
  • 威望0
  • 积分10

热门问题