sRowSelect error e(...) is not a function
sRowSelect error e(...) is not a function
bfuzze1234
Posts: 2Questions: 0Answers: 0
I'm trying to limit the number of rows that are exported, but when I enable the sRowSelect option I get the following error:
[quote]
TypeError: e(...).on is not a function
...){if(this.s.master){var a=this,b=this.s.dt;e(b.nTable).addClass(this.classes.sel...
[/quote]
This is my basic implementation:
[code]
function loadDT(sel) {
var dt_options = {
"sDom":"T<\"clear\">lfrtip",
"oTableTools":{
"sSwfPath": Drupal.settings.basePath+'sites/all/themes/csdtheme/js/TableTools-2.1.5/media/swf/copy_csv_xls_pdf.swf',
"sRowSelect":"multi",
"aButtons": [
{
"sExtends": "copy",
"mColumns": [ 1, 2, 3 ]
},
{
"sExtends": "csv",
"mColumns": [ 1, 2, 3 ],
"bSelectedOnly":true,
},
{
"sExtends": "pdf",
"mColumns": [ 1, 2, 3 ],
"bSelectedOnly":true
},
]
}
};
jQuery(sel).DataTable(dt_options);
jQuery('.DTTT_container').append('Print');
}
[/code]
http://debug.datatables.net/ikohuk
Any ideas? TIA
[quote]
TypeError: e(...).on is not a function
...){if(this.s.master){var a=this,b=this.s.dt;e(b.nTable).addClass(this.classes.sel...
[/quote]
This is my basic implementation:
[code]
function loadDT(sel) {
var dt_options = {
"sDom":"T<\"clear\">lfrtip",
"oTableTools":{
"sSwfPath": Drupal.settings.basePath+'sites/all/themes/csdtheme/js/TableTools-2.1.5/media/swf/copy_csv_xls_pdf.swf',
"sRowSelect":"multi",
"aButtons": [
{
"sExtends": "copy",
"mColumns": [ 1, 2, 3 ]
},
{
"sExtends": "csv",
"mColumns": [ 1, 2, 3 ],
"bSelectedOnly":true,
},
{
"sExtends": "pdf",
"mColumns": [ 1, 2, 3 ],
"bSelectedOnly":true
},
]
}
};
jQuery(sel).DataTable(dt_options);
jQuery('.DTTT_container').append('Print');
}
[/code]
http://debug.datatables.net/ikohuk
Any ideas? TIA
This discussion has been closed.
Replies
Allan
Good catch, I'm was using 1.4 (Drupal 7 default).
Thanks so much for the assistance.