Created
January 8, 2014 05:58
-
-
Save dtenenba/8312475 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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