Skip to main content
Participant
September 9, 2016
Question

Adding javascript to paint an HTML element

  • September 9, 2016
  • 1 reply
  • 314 views

Hello

I'm attempting to help a colleague who wants to buy Captivate.

My colleague wants to use Jsme (JSME Homepage ) which is a javascript library to display chemistry bonds based on alphanumeric (text) in an HTML element e.g. to use it on an HTML page you would do the following below:

To use it, you would add a div tag e.g.

<div id="jsme_container"></div>

and use javascript to apply the library to the id

<script type="text/javascript" language="javascript" src="jsme/jsme.nocache.js"></script>

<script>

//this function will be called after the JavaScriptApplet code has been loaded.

    function jsmeOnLoad() {

        jsmeApplet = new JSApplet.JSME("jsme_container", "380px", "340px");

   }

</script>

Is it possible to add HTML to a ?slide? and use javascript to "paint" the tag. I've read that captivate can use javascript but I'm not sure if this is possible.

We could just create HTML but captivate appears to offer more for our needs i.e. SCORM packaging and a better all round environment. We would want to create a quiz where the library is used to display chemistry things and students answer by using the javascript editor. The actual answer given is just supplied as text to a textbox. I guess this is similar to using TinyMCE on a text area.

Again this would give us the ability to create new learning objects that would integrate with our Blackboard Gradcentre.

Any ideas.

Thanks

Jason (off to see in TinyMCE would work and captivate as that's a similar idea and probably  more google-able)

This topic has been closed for replies.

1 reply

TLCMediaDesign
Inspiring
September 9, 2016

You can definitely create and HTML page with your applet, zip it and insert into Captivate as an HTML5 Animation.

Hooking it up to Captivates quiz reporting would be another story. I could be possible, I have never researched it.

espeecatAuthor
Participant
September 9, 2016

Hi

Thanks for that. A bit like tinyMCE the output/content of the editor is stored in a text editor. Do you know if that's possibly or similar to a javascript date picker. These usually get linked to an HTML element (by ID). I couldn't see if I could have an HTML element in a page/slide/captivate thing?

Thanks for answering too

Jas