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.
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.
5 Replies
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.
Cool, thanks Daniel.
Not exactly what you're looking for but worth looking at in relation to your question.
Articulate Storyline for HTML5/JavaScript Developers
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.
@Marco
Yeah, I ran into that. I am going to try targeting the canvas of a page that is in a web object (using the solution you provided in this post: https://community.articulate.com/discussions/articulate-storyline/using-javascript-to-open-a-web-object ). Thanks for your help!
This discussion is closed. You can start a new discussion or contact Articulate Support.