Denis Ignatenko Posted January 15, 2019 Share Posted January 15, 2019 Hi there! I'm working on the Javascript DataTable Jquery. I have a DataTable lib import issue. Spotfire Dev Tool always says "Uncaught TypeError: $(...).DataTable is not a function". So I couldn't not use the DataTable lib on my js. I imported the jquery and jqueryui before I use my js. In my js, I imported the DataTable lib like bellow: $(document).ready(function() { $.getScript("https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js", function () { if ($('head link[href=https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css]').length == 0) { $('head').append(''); } ......... }); });How should I import the DataTable lib correctly I attached the jquery and jqueryui js. I'm looking forward to hearing from you soon. Best regards, Denis. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now