Cannot read property 'Editor' of undefined at HTMLDocument. (http://localhost:8080/js/dat

Cannot read property 'Editor' of undefined at HTMLDocument. (http://localhost:8080/js/dat

patterncrackerpatterncracker Posts: 1Questions: 1Answers: 0

I am getting below error on the fn.dataTable.Editor
Cannot read property 'Editor' of undefined at HTMLDocument.<anonymous> (http://localhost:8080/js/dat

Below are my includes for script.

<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.6.5/css/buttons.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/select/1.3.1/css/select.dataTables.min.css">
<link rel="stylesheet" href="/css/editor.dataTables.min.css">

<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<script src="/js/dataTables.editor.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.6.5/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/select/1.3.1/js/dataTables.select.min.js"></script>
<script src="/js/datatable.js"></script>

Answers

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    It looks like you haven't include the DataTables JS file. If you look at this example here, ensure you have the necessary files listed on the Javascript and CSS tabs beneath the table.

    Colin

This discussion has been closed.