DataTables TableTools with Bootstrap on Multiple Tables
DataTables TableTools with Bootstrap on Multiple Tables
eistrati
Posts: 3Questions: 0Answers: 0
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!
[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!
This discussion has been closed.
Replies