Buttons 1.1.0 not load via requireJS
Buttons 1.1.0 not load via requireJS
viandante
Posts: 22Questions: 10Answers: 1
Hi,
I load the js via requirejs, and i the error:
Uncaught Error: Script error for: datatables.net
Uncaught Error: Script error for: datatables.net-buttons
RequireJS search to load datatables.net.js and datatables.net-buttons.js that not exists.
I have to go back to the previous version?
Thanks
Massimo
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I solved by changing the source of all extensions with my requireJS structure.
Hi viandante!
Do you mind explaining what you did?
I've tried the following with and without the 'https:':
and I've tried the following, also with and without 'https:':
But I can't seem to get it to work.
Appreciate any help!
What errors are you getting? Can you link to a test page showing the issue please?
Allan
Hi Allan
Sorry for the late reply, didn't get an email notification about your post.
The error i kept getting after I tried to include the extensions was
What I had to to was to change the way I included the main datatables.min.js.
From just doing:
to:
And now it seems to work! :)
Great to hear you got it working - thanks for posting back!
Allan