Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery datatables issue

When using the jQuery datatables plugin, why am I getting this error?

"k is undefined" -style typeof e.saved_aaSorting=="undefined")

like image 742
javamonkey79 Avatar asked Dec 06 '11 19:12

javamonkey79


People also ask

Why is my DataTable not working?

The cells must all either be “locked” or “unlocked”. Attempting to run the Data Table tool when all the cells in the table are not consistent will result in an error. To check or change the “locked” settings of a cell, select the cell, go to the Format Cells menu (CTRL + 1), and choose the Protection tab.

How much data can DataTables handle?

The maximum number of rows that a DataTable can store is 16,777,216.

What is jQuery DataTables JS?

jQuery DataTable is a powerful and smart HTML table enhancing plugin provided by jQuery JavaScript library. It is a highly flexible tool that is basically created to display information in tables as well as adding interactions to them, hence, enhancing data accessibility in HTML tables.

Is jQuery DataTables open source?

A. DataTables is free, open source software that you can download and use for whatever purpose you wish, on any and as many sites you want.


1 Answers

I posted this answer to document something for future reference for myself, I hope it will help someone else on down the line.

From the usage page (a little RTFM):

In order for DataTables to be able to function correctly, the HTML for the target table must be laid out in a well formed manner with the 'thead' and 'tbody' sections declared.

In my case, the <thead> and <tbody> sections were missing. Oops.

like image 135
javamonkey79 Avatar answered Sep 18 '22 15:09

javamonkey79