How to target the canvas in a web object?

Nov 11, 2015


I'm trying to use javascript in Storyline to target the canvas in a web object (and draw a shape).

Does anyone know if that can be done?


5 Replies
Daniel Sposato (Philly)

I am currently looking into how jQuery can be used similarly. I have only used JavaScript to pass variable values out of my courses. I've gotten pretty decent at using JS in Flash CC, but don't much like the SL or Captivate web object option of incorporating HTML5 into a project. If I find anything in my search in relation to this I'll share it here.

Marco Faust

Mark, I've looked into this a little and here is what I have found:

The "canvas" needs to be explicitly added to the page.  This requires modification of story.html.  Now that's a real pain because every time you re-publish, you have to somehow preserve your changes to story.html because Storyline writes a new version of story.html.

But there is no bang for the effort because, so far, I have been unable to get the canvas to extend over the player area.  I can invoke a canvas above the player or below the player but not on top of it.  Maybe some intrepid person would be able to show me how to do that.  However, given the problem mentioned above, it is doubtful that this will be worth it.

This discussion is closed. You can start a new discussion or contact Articulate Support.