Jquery DataTables server parameters
Posted
by
Faton
on Stack Overflow
See other posts from Stack Overflow
or by Faton
Published on 2011-11-07T09:03:57Z
Indexed on
2012/11/08
11:02 UTC
Read the original article
Hit count: 363
In jquery DataTables it is possible to add server parameters through the method fnServerData or fnServerParams :
$("#myTable").dataTable({
"bServerSide": true,
"sAjaxSource": contextApp,
"fnServerParams" : function(aoData){
aoData.push("name":"paramName", "value":"paramValue");
}
)
Is it possible to do the same thing through fnSettings method?
For example :
var myTable = $("#myTable").dataTable();
var oSettings = myTable.fnSettings();
//add server paramters to oSettings
© Stack Overflow or respective owner