sRowSelect error e(...) is not a function

sRowSelect error e(...) is not a function

bfuzze1234bfuzze1234 Posts: 2Questions: 0Answers: 0
edited January 2014 in TableTools
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

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Sounds like you are using an old version of jQuery - 1.6 or before. `$().on` was introduced in jQuery 1.7.

    Allan
  • bfuzze1234bfuzze1234 Posts: 2Questions: 0Answers: 0
    Thanks for the response.

    Good catch, I'm was using 1.4 (Drupal 7 default).

    Thanks so much for the assistance.
This discussion has been closed.