Using aoColumnDefs or aoColumns throws an error

Using aoColumnDefs or aoColumns throws an error

red010b37red010b37 Posts: 1Questions: 0Answers: 0
edited July 2011 in DataTables 1.8
If I do this
[code]
/* Using aoColumnDefs */
$(document).ready(function() {
$('#example').dataTable( {
"aoColumnDefs": [
{ "bSortable": false, "aTargets": [ 0 ] }
] } );
} );
[/code]
OR

[code]
/* Using aoColumns */
$(document).ready(function() {
$('#example').dataTable( {
"aoColumns": [
{ "bSortable": false },
null,
null,
null,
null
] } );
} );
[/code]


I get the following JS Error


Error: k[(qa ? qa : "string") + "-" + h[c][1]] is not a function
Source File: http://localhost.avids/js/jquery.dataTables.min.js
Line: 86


Am I missing something here?

Replies

  • cdaiglecdaigle Posts: 57Questions: 0Answers: 0
    Are you including jquery before datatables? The problem is likely to with with the JS files or how they are included, as nothing appears to be wrong with your code. If you can post the html from the header area where files are included that might help track the issue.
This discussion has been closed.