Uncaught ReferenceError

Uncaught ReferenceError

tableFantableFan Posts: 7Questions: 5Answers: 0
edited July 13 in DataTables

hello,
this error is shown to me all the time, can someone help me?

Uncaught ReferenceError: table is not defined

editor.inline(table.cells(this.parentNode, '*').nodes());

Answers

  • kthorngrenkthorngren Posts: 14,210Questions: 25Answers: 3,357
    edited July 13

    The table.cells( .. ).nodes() is using the variable table to access the Datatables API. See the API docs for details. Somewhere in your script you need to assign the variable. It can be assigned when when you initialize Datatables or you can get an instance of the API at anytime as described in the docs.

    If you need further help please provide a link to your page or a test case showing the issue so we can see what you have and help debug.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

Sign In or Register to comment.