cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

How do you import 3rd party libraries using hyperlink instead of local file?

pjbiocco
8-Gravel

How do you import 3rd party libraries using hyperlink instead of local file?

Hello, I am looking to get Graph.JS working within my Thingworx environment so I can have a bit more customization options with graph settings. 

I've reviewed documentation here saying this is how third party javascript should be embedded into a custom widget.

Following a similar structure, I attempted to import 3rd party code via https://cdnjs.com/libraries/Chart.js by adding the following into my widget, that way I don't have to download the files. However, this seems not to work. Is it required to download the 3rd party files to get them into a 3rd party widget? If not, how do I use these hyperlink-style imports that might be commonly used, for example this Jquery link:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>

 

pjbiocco_0-1661890167275.png

 

0 REPLIES 0
Top Tags