Trying to activate TableTools extension

Trying to activate TableTools extension

kfirrkfirr Posts: 10Questions: 2Answers: 0

Hi, I'm kind of new to DataTables and i'm trying to use the TableTools extension but it doesn't seems to appear.
i loaded all the js and the css and i see the Original DT that i had before, i also used the website manual to configure it.

my initialization code:

$(document).ready(function() {
$('#example').DataTable( {
dom: 'T<"clear">lfrtip',
tableTools: {
"sSwfPath": "../../media/swf/copy_csv_xls_pdf.swf"
}
} );
} );

i also viewing an error in Mozilla Firefox in the debugging console: "TypeError: jQuery.fn.dataTable is undefined"

Answers

  • kfirrkfirr Posts: 10Questions: 2Answers: 0

    my debug code from your debbuger: http://debug.datatables.net/uzejik

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    According to the Debugger:

    "TableTools - Not installed"

  • allanallan Posts: 63,389Questions: 1Answers: 10,449 Site admin

    Probably loading jQuery multiple times. But without a test link it is difficult to say.

    Allan

  • kfirrkfirr Posts: 10Questions: 2Answers: 0

    how can i create a test link?

  • allanallan Posts: 63,389Questions: 1Answers: 10,449 Site admin

    Use JSFiddle, CodePen of http://live.datatables.net .

    Allan

  • kfirrkfirr Posts: 10Questions: 2Answers: 0

    Hi allan,
    thanks for your help but i finally got this to work-
    The problem was loading Table Tools js files before DataTable js files.
    I think you should mention it at the manual.
    Best regards!

This discussion has been closed.