DataTables TableTools with Bootstrap on Multiple Tables

DataTables TableTools with Bootstrap on Multiple Tables

eistratieistrati Posts: 3Questions: 0Answers: 0
edited May 2013 in TableTools
I have multiple tables displayed in one web page, being initialized by below code:

[code]
/* Tables initialisation */
$(document).ready(function() {
$('.dataTable').dataTable({
"sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span3'T><'span3'i><'span6'p>>",
"sPaginationType": "bootstrap",
"bStateSave": true,
"oLanguage": {
"sLengthMenu": "_MENU_ records per page"
},
"oTableTools": {
"sSwfPath": "http://cdnjs.cloudflare.com/ajax/libs/datatables-tabletools/2.1.4/swf/copy_csv_xls_pdf.swf",
"aButtons": [ "copy", "csv", "xls", "pdf", "print" ]
}
});
});
[/code]

There is no javascript error in both Chrome or Safari, nevertheless when clicking on any of the buttons, it just doesn't work. Please help me debug / figure out what's wrong!

Replies

  • eistratieistrati Posts: 3Questions: 0Answers: 0
    The example I'm talking about can be found here: http://www.awsnow.info :)
  • eistratieistrati Posts: 3Questions: 0Answers: 0
    Never-mind! Apparently it's working now and it always did. I realized it after reading this post: http://datatables.net/forums/discussion/15605/even-tabletool-examples-are-not-working :)
This discussion has been closed.