Forum Discussion
RyanLowry
10 years agoCommunity Member
Storyline 2 Example - Generating a PDF Certificate for users who successfully complete a quiz
Hi all,
I've been experimenting with a JavaScript PDF library (pdfmake) to generate PDF certificates client side for learners who have successfully completed a quiz in Storyline 2.
You can see a...
RyanMartin
9 years agoCommunity Member
Nested iframes
Will the code still work?
If in an LMS, we have nested iframes. First iframe is for the lms <iframe class="tl-scorm-frame"... inside that we have the the web object...
Should this be updated to target the nested iframe:
var iframeElements = document.getElementsByTagName("iframe"); iframeElements[0].contentWindow.generatePDF();
If so, lil'help ;)
Late of night of google'n "nested iframe targeting" ...
/life of a gangster
Ryan
P.S. Great job Ryan
- RyanMartin9 years agoCommunity Member
Maybe target the iframe id? If nested in an LMS?
<iframe frameborder="0" id="div5ZXigntYKK9.6C0CWw28H1t.64Y3LmijXhu.69J7dQoqcJI" src="..." style="border: 0px; width: 100%; height: 100%;"></iframe>