September 13, 2018
How to bring or use an external javascript library into captivate 2019
Comments
(3)
September 13, 2018
How to bring or use an external javascript library into captivate 2019
Newbie 2 posts
Followers: 1 people
(3)
  1. I am trying to use the javascript library 3djs.

I created a map using html and the javascript 3djs library, but  when I bring it into captivate as a web object

it does not work. I try many different way to see if the map show up but nothing seems to work.

I know that Jquery and Bootstrap are integrated into captivate.

How to integrate the 3djs into captivate?

3 Comments
2018-09-13 22:15:15
2018-09-13 22:15:15

The method on the forum lieve points too may be simpler than what I do, but I found this piece of code on a forum once and it works well for me:

 

function addScript(src){
var s = document.createElement (‘script’);
s.setAttribute(‘src’, src);
document.body.appendChild(s);
}

addScript(‘TweenMax.min.js’);

 

In this example I’m adding the Greensock library. I place this code on my first slide with the on enter action. Then add the .js file next to where the outputted index.html file is.

 

Hope that helps!

 

Like
2018-09-13 18:54:57
2018-09-13 18:54:57

You can also open your browser console to see what errors are being triggered.

Like
(1)
2018-09-13 08:33:13
2018-09-13 08:33:13

I am not a JS expert, but may I point to a thread where a real JS guru has been answering a similar question?

https://forums.adobe.com/message/10332434#10332434

 

Like
Add Comment