Skip to content

Instantly share code, notes, and snippets.

@dtenenba
Created January 8, 2014 05:58
Show Gist options
  • Save dtenenba/8312475 to your computer and use it in GitHub Desktop.
Save dtenenba/8312475 to your computer and use it in GitHub Desktop.
console.log("here we are in demo.js");
var myCallbackFunction = function( nRow, aData, iDisplayIndex ) {
console.log("in row callback function");
return nRow;
}
$(function() {
console.log("in document ready function");
});
/*
// this won't be run until the document ready function is finished:
$(window).load(function(e) {
console.log("in window load function");
var oTable = $('#DataTables_Table_0').dataTable();
console.log("oTable is " );
console.log(oTable);
var newoptions = {"fnRowCallback": myCallbackFunction};
oTable.fnDestroy(); // this throws an error
oTable = $('#DataTables_Table_0').dataTable(newoptions);
console.log("after");
});
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment