Tabletools swf showing empty on left side & buttons show as text-links
Tabletools swf showing empty on left side & buttons show as text-links
Osiris
Posts: 36Questions: 0Answers: 0
Hi,
Newb-question alert !
I've been struggling with this for some time now.
The tabletools buttons aren't shown how they should (well ... not at all actually) and can't figure out why.
I've set the path to the swf directly to your server.
I'm using a server-side script to fill up the tables (with selectable rows) which is working perfectly.
Loving the performance, btw.
Nothing is showing in firebug, nor in the FF trace (besides some IE css warnings)
What happens is the buttons are show as what appear to be links which aren't clickable.
When I hover to the top left of my table, the cursor changes to a hand.
When I click it I get the save-as-pdf dialog.
It seems the swf(s) are shown on top of eachother and not visible.
I tried the redraw functions without success.
I've got more java, jquery & css files in my document.
Could these possibly conflict ?
[code]
[/code]
[code]...
TableTools.DEFAULTS.sRowSelect = "multi";
var oTable=$(\'#example\').dataTable( {
"sDom": \'T<"clear">lfrtip<"clear spacer">T\'
,"oTableTools": {
"sSwfPath": "http://datatables.net/release-datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"
,"aButtons": [
"copy",
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
}
} );
...[/code]
Newb-question alert !
I've been struggling with this for some time now.
The tabletools buttons aren't shown how they should (well ... not at all actually) and can't figure out why.
I've set the path to the swf directly to your server.
I'm using a server-side script to fill up the tables (with selectable rows) which is working perfectly.
Loving the performance, btw.
Nothing is showing in firebug, nor in the FF trace (besides some IE css warnings)
What happens is the buttons are show as what appear to be links which aren't clickable.
When I hover to the top left of my table, the cursor changes to a hand.
When I click it I get the save-as-pdf dialog.
It seems the swf(s) are shown on top of eachother and not visible.
I tried the redraw functions without success.
I've got more java, jquery & css files in my document.
Could these possibly conflict ?
[code]
[/code]
[code]...
TableTools.DEFAULTS.sRowSelect = "multi";
var oTable=$(\'#example\').dataTable( {
"sDom": \'T<"clear">lfrtip<"clear spacer">T\'
,"oTableTools": {
"sSwfPath": "http://datatables.net/release-datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"
,"aButtons": [
"copy",
"print",
{
"sExtends": "collection",
"sButtonText": "Save",
"aButtons": [ "csv", "xls", "pdf" ]
}
]
}
} );
...[/code]
This discussion has been closed.
Replies
Here's the full code on my testpage.
[code]
$(document).ready(function() {
var oTable = $('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "http://datatables.net/release-datatables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf"
},
"bProcessing": true,
"bServerSide": true,
"sAjaxSource": "http://someserver.intranet:81/sla/includes/js/datatables/scripts/mssql_processing.php"
} );
} );
[/code]
I've got a table for the results
[code]
site_id
descr
country_id
Loading data from server
site_id
descr
country_id
[/code]
Should I create a container somewhere for the buttons ??
I generate the java with php and forgot to take m out.
Let me know if I should buy support.
Would it be possible to expose the pages used in the primary example of the buttons ?
So the entire pages + the directory structure of the pages, css and js involved.
Or anyone with working buttons that uses server-side script.
Plz send me flux capacitor & DeLorean to remove this lost day.
Somehow I emptied the TableTools.css file...
No errors generated... Very hard to track.
If I had a flux capacitor I'd send it over yesterday ;-)
Allan