DataTables + TableTools
DataTables + TableTools
shikida
Posts: 2Questions: 0Answers: 0
Hi
I can make DataTables work but not TableTools.
No error message, no javascript error, I have no idea where the problem is
Here's a snippet of the CSS and JS declaration
[code]
function initTable(tableHeader){
var cols = eval(tableHeader);
$('#demo_jui').html( '' );
$('#tid').dataTable( {
"bServerSide" : true,
"bFilter": true,
"sAjaxSource" : "${pageContext.request.contextPath}/TableDataServlet",
"bProcessing" : true,
"sPaginationType" : "full_numbers",
"bJQueryUI" : true,
"aoColumns" : cols,
"oTableTools": {
"sSwfPath": "TableTools-2.1.5/media/swf/copy_csv_xls_pdf.swf"
}
} );
}
[/code]
any ideas?
already tried using absolute URLs in both sSwfPath at dataTable constructor and in TableTools constants without success.
TIA
Leo
I can make DataTables work but not TableTools.
No error message, no javascript error, I have no idea where the problem is
Here's a snippet of the CSS and JS declaration
[code]
function initTable(tableHeader){
var cols = eval(tableHeader);
$('#demo_jui').html( '' );
$('#tid').dataTable( {
"bServerSide" : true,
"bFilter": true,
"sAjaxSource" : "${pageContext.request.contextPath}/TableDataServlet",
"bProcessing" : true,
"sPaginationType" : "full_numbers",
"bJQueryUI" : true,
"aoColumns" : cols,
"oTableTools": {
"sSwfPath": "TableTools-2.1.5/media/swf/copy_csv_xls_pdf.swf"
}
} );
}
[/code]
any ideas?
already tried using absolute URLs in both sSwfPath at dataTable constructor and in TableTools constants without success.
TIA
Leo
This discussion has been closed.
Replies
missing the
"sDom": 'T<"clear">lfrtip',