如果我有一个 sAjaxSource,我可以通过它传递参数以使我的页面更灵活吗?这是我现在的样子:
"sAjaxSource": "Data/IndustryTable?region_type=4®ion_code=51&ind_min=10&ind_max=99"
最终目标是当用户登陆页面时,预定义参数加载特定数据。在用户对更新参数的其他信息进行选择之后,然后更新数据表。
这是大多数准备好的功能
$(document).ready(function () {
var anOpen = [];
var oTable = $('#VADataTable').dataTable
({
// "sDom": 'T<"clear">lfrtip',
// "oTableTools":
// {
// "sSwfPath": "/swf/copy_csv_xls_pdf.swf"
// }, //flash must be enabled
"iDisplayLength": 5, //defalut amount of rows shown on page
"bServerSide": false, //uses sever for filter curently turned off
"bFilter": false, //makes columns clickable to filter
"bProcessing": true,
//"bserverSide":true,
"bJQueryUI": true, //enables user interface
"bSort": true, //sorting for columns
"bScrollInfinite": true, //using this takes away ddl of selection
"sAjaxSource": "Data/IndustryTable?region_type=4®ion_code=51&ind_min=10&ind_max=99", //where ajax commands renders results
"sScrollY": "200px",
"sScrollX": "100%",
"sScrollXInner": "100%",
"bScrollCollapse": true,