Forum Discussion
How to trigger an iframe button in storyline course?
- 5 months ago
I was finally able to get a folder at the base of our website to try this and it still doesn't work. I went to the link you have above on my mobile phone to test your example and even yours doesn't show the actual file on a mobile phone it shows a link to download where your document should be...it works properly on a desktop but not on a mobile phone. Is there any script/coding to make a document show in an iframe on a mobile phone using the web object in storyline instead of showing a download button where the document should be showing like it does on a desktop. See below I want the actual document showing in that iframe not a download button.
.
The iframe isn’t pulling information from a website, its coding I placed into an index.html to pull in a company policy pdf form into a slide in an iframe for my course.
<!DOCTYPE html>
<html>
<title>AJW Fitness For Work Policy - FEBRUARY 2025</title>
<body>
<object data="AJW Fitness For Work Policy - FEBRUARY 2025.pdf" type="application/pdf" width="720" height="530">
</object>
</body>
</html>
Okay, I see now. Although the iframe isn’t pulling information from a website, you are encountering a similar issue. What we see at the top is the PDF viewer. If the PDF viewer is hosted on a different domain (for example, within a browser's default PDF viewer), you cannot modify its UI or control its behavior due to the same-origin policy. This means you can't directly interact with or manipulate the PDF viewer's UI elements, such as the print button. If you have created a custom print button within your HTML, you could potentially log an action or modify a variable in Storyline. This could, in turn, enable functionality like unlocking the "Next" button, for example. However, the default print button in the PDF viewer would still be present, which could lead to confusion since there would be two print buttons available.
Related Content
- 7 months ago
- 10 months ago
- 10 months ago
- 10 years ago