Quantcast
Viewing all articles
Browse latest Browse all 82150

DataTables TableTools with Bootstrap on Multiple Tables

I have multiple tables displayed in one web page, being initialized by below 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" ]
		}
	});
    });

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!

Viewing all articles
Browse latest Browse all 82150

Trending Articles