Error: flash.setAction is not a function

Error: flash.setAction is not a function

helgetryhelgetry Posts: 1Questions: 0Answers: 0
edited November 2011 in TableTools
I have some jQuery DataTable issues:

I get the following error when using jQuery DataTable TableTools to create an "export to PDF" button above my table:

flash.setAction is not a function
flash.setAction( 'pdf' );
(TableTools.js (line 1165))

My code is as follows, adapted from the example at http://www.datatables.net/extras/tabletools/.

$(document).ready( function () {
$('.attendees').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [
{
"sExtends": "pdf",
"sButtonText": "Export to PDF",
"mColumns": [ 0, 1, 2, 3, 4 ]
}
],
"sSwfPath": "path/to/flash/copy_cvs_xls_pdf.swf"
}
} );
} );

Does anybody know why this occurs?

Thanks in advance!
This discussion has been closed.