FixedColumns 3.0.2: undefined is not a function for line 278: this._fnConstruct( init )
FixedColumns 3.0.2: undefined is not a function for line 278: this._fnConstruct( init )
adammalinowski
Posts: 3Questions: 1Answers: 0
Can't figure out how to replicate this in DataTables live, but hoping it is simple enough.
Using jQuery 1.11.1 and DataTables 1.10.2, code is simply:
$(document).ready(function() {
table = $('#table').dataTable({});
$.fn.dataTable.FixedColumns(table);
});
Result: undefined is not a function for line 278: this._fnConstruct( init )
Works fine without FixedColumns.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Are you referencing dataTables.fixedColumns.js in your page? It's a separate download.
I am referencing the extension that comes with DataTables 1.10.2 i.e.
I can confirm that FixedColumns is loading correctly, and that the error is within the dataTables.fixedColumns.js file.
Needs the
new
key word since you are creating a new instance!Allan
Doh! Thanks!