Forum Discussion
Dear Joseph and Nedim,
Thank you both for the help!! I learned so much from you. Joseph your code works perfectly; I have tested it in Moodle (Var Showing) with a single slide made with Storyline360 (Var Showing 2 with Triggers attached too) and it does work. On launching it shows my name. Super. I will be forever grateful and I am now studying the code, so I understand what you did. Big learning and big big help. I owe you coffee or beer :-).
Thanks also Nedim for your additional inputs. I am really grateful, the learning is so great.
I think the previous (failed) attempt was also due to SCORM 1.2 and not SCORM 2004. Would the code not work in 1.2? It was also a different code anyway and being ignorant I am not yet at the point where I can discern how to adapt any code I find in forums. Maybe I will try and see, what happens in SCORM 1.2. I am getting more experimental :-)
Now I am going to try to import the same Var into a PDF (I use Scribus, an open source DTP to create it) and make the PDF automatically download on clicking the button you see in the slide (empty for now) with another JavaScript code (I used one in the past and I am going to try to remember how I did it - it was from other useful entries in this forum).
We want users to click on a button (vs. completely auto download on Timeline starting trigger) cause the document is a legally binding statement for employees (it's a course on sexual misconduct in the workplace) and we want to avoid that people use name of fantasy (or make mistakes typing) that then go into the document. It's a sort of compromise between positive action and automation, but the SME decided this is good enough.
You helped me a lot and so a big thanks! Now on with the printing/downloading....and self-studying JavaScript. I must say that I see more and more how useful it is.
Greetings from Germany!
A