I am trying to use a select box value as the url for an AjaxLink but my code doesn’t seem to be working. Is this possibile ?
echo CHtml::ajaxLink(Yii::t('admin','Apply to selected'),
"js:$(#".$this->getId()."-actions).val())",
array( // ajaxOptions
'type' => 'POST',
'beforeSend' => "js:function(request) {
//pre-sending
var checked = $.fn.yiiGridView.getChecked;
}",
'success' => "js:function(data) { // return data
alert(data);
}",
'data' => "js:{chk:$.fn.yiiGridView.getChecked('".$this->getId()."','chk')}"
),
.......