Cannot get sample editor to construct
Cannot get sample editor to construct
I have downloaded a trial version of the editor. I am trying to get the editor to just work on the local (silent-side) table in the HTML without AJAX loading or saving (long story). I have been using DataTables as a viewer, but now would like user's to be able to edit the data on the screen.
When I follow the simple examples on a simple local HTML page with just some basic HTML table I keep getting a JS error when constructing the editor:
$(document).ready(function() {
editor = new $.fn.dataTable.Editor( {
will give me:
TypeError: undefined is not a constructor (evaluating 'new $.fn.dataTable.Editor')
I will ultimately generate this via a PHP page, but don't want to install the PHP server-side installs, and only use the JS as all display and edits are happening on client-side.
I have included the script to the editor extension:
<script type="text/javascript" language="javascript" src="..../extensions/Editor/js/dataTables.editor.min.js"></script>
But still get the error. Is this a licensing thing? Do I need to install the server-side components? Is there a way to use the editor only client-side?
Answers
Sounds like
src="..../extensions/Editor/js/dataTables.editor.min.js"
is not being loaded properly. Do you see other errors in the console? Use the browser's network inspector to see if the file is loaded properly and in the right order.Has the trial expired? The trial is 15 days.
Kevin