jautry
(J M Autry)
1
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']),
));
andy_s
(Arekandrei)
2
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.
deib97
(Deib97)
4
Still not solved about it. Same problem. 