Include external js libraries in webapps
Hi all,
I would like to include an external plugin (say jquery tablesorter for instance) in a webapp without accessing it with a CDN link.
I have no access to the local/static repository, I would like to rely on project libraries only.
I guess I should copy/paste the content of the tablesorter.min.js (mottie.github.io/tablesorter/dist/js/jquery.tablesorter.min.js) into a project library file, and reference this script in the javascript code, but I can't figure out how.
Can you please provide me with some guidance or any other idea?
Thank you,
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,226 Dataiker
Hi @Hugo31
,
Indeed if you don't want to use the the CDN link you can use use static resources in Webapp.
As mentioned here you can add the contents of jquery.tablesorter.min.js to theMore details explained in :
https://community.dataiku.com/t5/Using-Dataiku/Interact-with-Static-Web-Resources-Global-Shared-Code-inside-a/m-p/26344 -
Thank you for your response,
The issue is I do not have the rights to write global shared code (Not Authorized: Action forbidden). Is there a way to do it using only project libraries ?