I am using a function 'fnDrawCallback' for page change. It basically solves my purpose. The only thing is I have to specify that function when I am initializing dataTable object. Is there any way I can do it after initialization?
For Example: I am doing like this:
$("#tableID").dataTables({'fnDrawCallBack':functionName});
I want to do like this:
var oTable = $("#tableID").dataTables();
oTable.fnDrawCallback = functionName; // or something like this
Solution:
oTable.aoDrawCallback.push(functionObj);
var functionObj = {
fn: funtionName
};