Tabletools buttons not working - DataTable with bootstrap
Tabletools buttons not working - DataTable with bootstrap
Hello guys. I'm having a lot of issues with exporting my table to pdf.
I'm using the last stable version of DataTables, Bootstrap and Tabletools,
I'm trying to export the table to pdf but I just can't.
My initialization code is:
[code]
$(document).ready(function() {
oTable = $('#gTable').dataTable( {
"bProcessing": true,
"sDom": "T<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
"oTableTools": {"sSwfPath": "media/swf/copy_csv_xls_pdf.swf", "aButtons": [ "csv", "xls", "pdf" ]},
"oLanguage": {
"sProcessing": "Processando...",
"sLengthMenu": "_MENU_ registros por página",
"sZeroRecords": "Não foram encontrados resultados",
"sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros",
"sInfoEmpty": "Mostrando de 0 até 0 de 0 registros",
"sInfoFiltered": "(filtrado de _MAX_ registros no total)",
"sInfoPostFix": "",
"sSearch": "Buscar:",
"sUrl": "",
"oPaginate": {
"sFirst": "Primeiro",
"sPrevious": "Anterior",
"sNext": "Seguinte",
"sLast": "Último"
}
},
"sPaginationType": "bootstrap",
} );
});
[/code]
The page header has, in this order:
I checked and the swf file is loading ok. I just click the button and nothing happens. I need help!!!
I'm loading everything from my notebook, direct from a local folder, can this be the reason? Maybe the bootstrap is conflicting with something?
Someone please help me, I don't know anymore what to do.
Thanks!
I'm using the last stable version of DataTables, Bootstrap and Tabletools,
I'm trying to export the table to pdf but I just can't.
My initialization code is:
[code]
$(document).ready(function() {
oTable = $('#gTable').dataTable( {
"bProcessing": true,
"sDom": "T<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
"oTableTools": {"sSwfPath": "media/swf/copy_csv_xls_pdf.swf", "aButtons": [ "csv", "xls", "pdf" ]},
"oLanguage": {
"sProcessing": "Processando...",
"sLengthMenu": "_MENU_ registros por página",
"sZeroRecords": "Não foram encontrados resultados",
"sInfo": "Mostrando de _START_ até _END_ de _TOTAL_ registros",
"sInfoEmpty": "Mostrando de 0 até 0 de 0 registros",
"sInfoFiltered": "(filtrado de _MAX_ registros no total)",
"sInfoPostFix": "",
"sSearch": "Buscar:",
"sUrl": "",
"oPaginate": {
"sFirst": "Primeiro",
"sPrevious": "Anterior",
"sNext": "Seguinte",
"sLast": "Último"
}
},
"sPaginationType": "bootstrap",
} );
});
[/code]
The page header has, in this order:
I checked and the swf file is loading ok. I just click the button and nothing happens. I need help!!!
I'm loading everything from my notebook, direct from a local folder, can this be the reason? Maybe the bootstrap is conflicting with something?
Someone please help me, I don't know anymore what to do.
Thanks!
This discussion has been closed.
Replies
Just go to this page:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
Change it, restart the browser and you are good to go!