Uncaught TypeError: l is undefined
Uncaught TypeError: l is undefined
Macaroni91
Posts: 5Questions: 2Answers: 0
Link to test case: http://live.datatables.net/bitataji/5/edit
I get Uncaught TypeError: l is undefined and i'm not sure why.
I tried using jquery ajax and save it into a variable,then use the DataTable 'data' attribute, which works.
However i prefer to do it directly with the DataTable's ajax property.
Thank you
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Your JSON response isn't in the default
data
property expected by Datatables. You can find more info in the Ajax docs. You can usedataSrc
to point Datatables to the proper location, for example:dataSrc: ""
. See the updated test case:http://live.datatables.net/ronucuxe/1/edit
Kevin