Jump to content
We have recently updated our Privacy Statement, available here ×

JavaScript DataTable Issue


Recommended Posts

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

×
×
  • Create New...