yii带有ajax的cgridview dropdownlist列值

时间:2015-09-05 06:43:55

标签: php ajax gridview yii

我是yii的新手。任何人都可以找到我的问题的解决方案。我错了。它没有返回价值。在状态级别操作中,我必须将值提交到另一个模型中的状态。

的index.php:

array(
    'name' => 'status',
    'type' => 'raw',
    'value' => "CHtml::dropDownList('status', '', array('1' => 'Open' , '2' => 'Fixed' , '3' => 'Closed' , '4' => 'Re-Open' , '5' => 'Clarification'),  
    'ajax' => array(
        'type' => 'GET', 
        'data' => array('status' => 'js:this.value'), 
        'dataType' => 'text',
        'url' => Yii::app()->createUrl('projectBug/statuslevel'),    
        'success' => 'function(data){alert(data);}',
     ),
     'filter' => false,
),

1 个答案:

答案 0 :(得分:-1)

就是把get方法改成方法'type' => 'POST'

相关问题