Help with TableTools

Help with TableTools

alshalanalshalan Posts: 3Questions: 0Answers: 0
edited April 2012 in TableTools
Hi all,
I'm using TableTools for the first time and I can't get it to work.
Here's a snippet of my code:

var editAreaTable = dom.query('#areaEditTable').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [ "csv", "xls", "pdf" ]
},
"iDisplayLength": 50,
"aoColumns": [
null,
null,
null,
null,
null],
"bInfo": false,

} );
I know in the examples they're using $, but I have to use dom.query for a reason.
The DataTable works fine without the TableTools part (the code below). Here's what the browser says when I added this code:

"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"aButtons": [ "csv", "xls", "pdf" ]
},

------

Failure parsing template context:t5/admin/TransferEditArea.tml: Unexpected character '"' (code 34) in content after '<' (malformed start element?). at [row,col {unknown-source}]: [6,18]

it points at this line "sDom": 'T<"clear">lfrtip',

I made sure I include both TableTools.min.js and TableTools.css in the header.

Any idea how to solve this problem?

Any help would be highly appreciated .

Thanks!
This discussion has been closed.