TableTools 2.0.1 'Movie not loaded' problem

TableTools 2.0.1 'Movie not loaded' problem

kwookwoo Posts: 6Questions: 0Answers: 0
edited August 2011 in TableTools
Hi,

I am struggling to get table tools to work with 1.8 version of datatables. Right clicking on buttons in chrome/Firefox shows 'movie not loaded'.

I am just using standard configuration:
[code]






$('#example').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/appContext/resources/media/swf/copy_cvs_xls_pdf.swf"
}
});
[/code]

any ideas on whats stopping flash object being loaded? The paths seem correct to me.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Not sure I'm afraid - can you link us to your example page? Are you getting any errors in your server error log?

    Allan
  • kwookwoo Posts: 6Questions: 0Answers: 0
    Allan, apologies, its look like the problem is caused when I use multiple tabs (e.g JQuery UI tabs).

    I have a table on second tab and its not working correctly (though print is), it works correctly when not used within 'hidden tab'. I thought this was corrected in 2.0.1 release? is there something speacial i need to do trigger on 'display' of tab?
  • kwookwoo Posts: 6Questions: 0Answers: 0
    edited August 2011
    Just to say used example delivered with 2.0.1 for tabs and now works as expected.

    [code]



    $(document).ready( function () {
    $('#example').dataTable( {
    "sDom": 'T<"clear">lfrtip',
    "oTableTools": {
    "sSwfPath": "${swfPath}"
    }
    });

    $("#exampletabs").tabs({

    "show": function(event, ui) {
    var jqTable = $('#example2', 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();
    }
    }
    }
    });

    $('#example2').dataTable( {
    "sDom": 'T<"clear">lfrtip',
    "oTableTools": {
    "sSwfPath": "${swfPath}"
    }
    });
    });
    [/code]
This discussion has been closed.