Javascript to print scene

Hi, 

I am looking to get help with Javascript that will allow readers an option to print a specific scene within my storyline.

I created a print tab within the player with the generic window code but feel that's not user friendly to have to print one screen at a time. 

I have created a "Print" button on the slide I would like it to appear, have set the trigger to Javascript; unfortunately I have no idea where to go from there.  I have no coding experience; the only java experience I have is with coffee. 

Any help is greatly appreciated.

Thanks, Chris  

5 Replies
Scott Wiley

Hi Chris,

By "scene" you mean a container with variable amount of "slides" correct?

To do something like that with code, if possible at all, would be extremely complex (and fragile). 

To go as simple (unbreakable) as possible would be for you to create PDFs of your separate scene contents. Then you can offer the PDFs as identified by scene in your Resources menu.

Will that work in your situation?

Chris Steiner

Hello Scott, thanks for getting back to me.  I'm really new to all of this, and terminology, but presume "container" is referring to all the contents within a scene..?

I am currently importing training documents previously done in PPT, into sl360, to make SCORM for our LMS.  My starting scene consists of the 11 PPT slides that make up the lesson.  Then I have two separate question banks.

Based on what you're saying, it would be uber complex to hit print and have a command written to print all the slides within Scene X.  I will look into the pdf route and attach it as a resource.  

Thanks for the idea.

Chris

Chris Steiner

Hi Adrian, sorry for the delayed response; I was out of town. 

I went the route that Scott recommended and I embedded a .pdf copy of the material within the "Resources" tab of the player; however, I have the  Resources tab shut off during the lesson, but have the player custom set to show the Resources tab on the final results slide.  Doing so prevents the learner from printing out a hard copy the first time through the training.