在我的页面上,我有一个包含三个页面的选项卡视图。为此,我使用 CHtml::ajaxLink,如下所示
<li >
<?php echo CHtml::ajaxLink("Manual Billing", CController::createUrl('billing/manualbilling'), array('update' => 'html',
'type' => 'POST',));?>
</li>
<li>
<?php echo CHtml::ajaxLink("Billing History", CController::createUrl('billing/historyBilling'), array('update' => 'html',
'type' => 'POST',
));?>
</li>
<li>
<?php echo CHtml::ajaxLink("Merchant Wise Billing Status", CController::createUrl('billing/manualbilling'), array('update' => 'html',
'type' => 'POST'), array(//htmlOptions
// 'class' => "reportlink"
));?>
</li>
由于给定的 url 页面正在加载,但问题是我在视图页面中给出了一些 jQuery 函数来实现不工作的数据表。
$(document).ready(function() {
$('#example').dataTable( {
"sScrollY": "400px",
"bPaginate": false,
"oLanguage": {
"sEmptyTable": "No records to display"
},
"sDom": 'T<"clear">lfrtip',
"aaSorting": [],
"aoColumns": [
{ "bSortable": false },
null,
null,
null,
null,
null,
],
"oTableTools": {
"sSwfPath": "<?php echo Yii::app()->request->baseUrl; ?>/media/js/TableTools/media/swf/copy_csv_xls_pdf.swf",
"aButtons": [
{
"sExtends": "print",
"sInfo": "Please press escape when print is completed."
}
// {
// "sExtends": "collection",
// // "sButtonText": "Save",
// "aButtons": [ "csv", "xls", "pdf" ]
// }
]
}
} );
} );
它甚至没有进入 document.ready()。请帮忙