Tabletools swf showing empty on left side & buttons show as text-links

Tabletools swf showing empty on left side & buttons show as text-links

OsirisOsiris Posts: 36Questions: 0Answers: 0
edited September 2012 in TableTools
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]

Replies

  • OsirisOsiris Posts: 36Questions: 0Answers: 0
    edited September 2012
    Even when oversimplifying the code I cannot get the buttons to draw correctly.
    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 ??
  • OsirisOsiris Posts: 36Questions: 0Answers: 0
    edited September 2012
    ps don't mind the \'
    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.
  • OsirisOsiris Posts: 36Questions: 0Answers: 0
    Ok plz close this and remove it from history.
    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.
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    edited September 2012
    Sorry for the delay in replying to you. Reading through the comments, I was thinking "no TableTools.css file?". Good to hear you got it sorted out.

    If I had a flux capacitor I'd send it over yesterday ;-)

    Allan
  • OsirisOsiris Posts: 36Questions: 0Answers: 0
    well ... the "when" you'd send it would be irrelevant :-)
This discussion has been closed.