"oTableTools": {
"sSwfPath" : "media/swf/copy_cvs_xls.swf"
} "sDom": 'T<"clear">lfrtip',to
"sDom": 'T<"clear"><"H"lfr>t<"F"ip>',Allan
"oTableTools": {
"sSwfPath": "http://datatables.net/release-datatables/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf"}
.DTTT_container {
display: none;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<style type="text/css" title="currentStyle">
@import "/media/css/demo_page.css";
@import "/media/css/demo_table.css";
@import "/css/jquery-ui/css/redmond/jquery-ui-1.8.4.custom.css";
@import "/TableTools/media/css/TableTools.css";
a { font-family: Arial, Verdana, sans-serif; font-size: 18px; color: #483D8B; text-decoration: none }
a:hover { font-family: Arial, Verdana, sans-serif; font-size: 18px; color: #A52A2A; background-color: #FAEBD7}
h1 { font-family: Arial, Verdana, sans-serif; font-size: 32px; color: #A52A2A }
h2 { font-family: Arial, Verdana, sans-serif; font-size: 24px; color: #A52A2A }
</style>
<script type="text/javascript" src="/media/js/jquery.js"></script>
<script type="text/javascript" src="/media/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="/FixedHeader/media/js/FixedHeader.js"></script>
<script type="text/javascript" src="/TableTools/media/js/TableTools.min.js"></script>
<title>PERC Entity Location Report</title>
<script type='text/javascript'>
$(document).ready(function() {
var oTable = $('#percloc3').dataTable({
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/TableTools/media/swf/copy_cvs_xls_pdf.swf",
}
});
new FixedHeader( oTable );
});
</script>
</head>
This displays the buttons, but if you move the mouse over them they vanish, leaving just the Print option. If I add an aButton for just xls, then no buttons appears.
$("#report-tabs").tabs( {
"show": function(event, ui) {
var jqTable = $('table.display', ui.panel);
if ( jqTable.length > 0 ) {
var oTableTools = TableTools.fnGetInstance( jqTable[0] );
if ( oTableTools != null && oTableTools.fnResizeRequired() )
{
/* A resize of TableTools' buttons and DataTables' columns is only required on the
* first visible draw of the table
*/
jqTable.dataTable().fnAdjustColumnSizing();
oTableTools.fnResizeButtons();
}
}
}
});
It looks like you're new here. If you want to get involved, click one of these buttons!
Get useful and friendly help straight from the source.