DataTables JS Bin
DataTables JS Bin
Does http://live.datatables.net/ work any longer? Seems even the smallest bit of code added to the default files that are loaded, I get the following error:
http://live.datatables.net/runner:515:5
m.event.dispatch@http://code.jquery.com/jquery-1.11.3.min.js:4:8497
m.event.add/r.handle@http://code.jquery.com/jquery-1.11.3.min.js:4:5235"
The only thing I added to the default loaded code is:
$(document).ready( function () {
var table = $('#example').DataTable();
$('#example').on( 'click', 'tr', function () {
alert( 'Clicked row' );
} );
} );
And yet I still get the error. The DT and jQuery source was added. Any thoughts?
Thanks!
This question has an accepted answers - jump to answer
Answers
It seems to work okay for me: http://live.datatables.net/favefize/1/edit .
You can't use
alert()
on the live site since JS Bin disables it, but console.log will work just fine.Can you give me a link to a page that shows the error you are getting?
Allan
See what happens when I post questions? I just embarrass myself. Pretty sure that this is simply user error after trying out some other examples...disregard, and close this post. I did learn you can't use
alert()
though. I'll take that and run with it.