Multiple Data Parameters In Chtml::ajax

What is the proper way to format for passing multiple parameters through the data element? This does not seem to work.

echo CHtml::ajax(array(

 'url'=>yii::app()->createUrl('asset/AssetTypeData'),


 'type'=>'post',


 'update'=>'#id_types',


 'data'=>array('category'=>'js:jQuery("#id_category").val)','selected'=>$assetData['model']['currentType']),


 ));

It should be valid javascript:




echo CHtml::ajax(array(

'url'=>yii::app()->createUrl('asset/AssetTypeData'),

'type'=>'post',

'update'=>'#id_types',

'data'=>'js:{category: jQuery("#id_category").val, selected: insert_php_variable_there}',

)); 



Please post detail about this problem.

Still not solved about it. Same problem. :rolleyes: