The IFrame component allows you to embed web content in your page. This component has several uses.
For a detailed reference of properties that affect IFrames, see Common Properties and IFrame Properties.
To create an IFrame component that embeds web content in your page:
To embed a PDF file in your page:
assets
folder.For the URL of the IFrame component, drag the PDF file from the Project panel.
The PDF is embedded in the page.
You can create a button panel that lets the user determine which URL is loaded in an IFrame. There are several ways to do this. These steps show you how to achieve this effect using a Case dataflow block. Alternatively, you could create an onClick action for each button, as shown in this video, or you could create a button symbol that holds the URL as one of its parameters.
To use a Case block for IFrame navigation:
Insert a text component within the group.
This is your first button. Optionally, style your button using properties and actions.
You can use the IFrame component to implement custom JavaScript in your page. For detailed instructions, see Adding a Custom JavaScript Component.
One use of the IFrame component is to embed a video that is hosted on another website such as Vimeo or YouTube.
To upload and embed a video file, use the Video component.
To embed a video from the web:
Copy the URL for the video player.
To get a link, click on Embed (YouTube) or Share (Vimeo).
If you try to load HTTP content using IFrame on HTTPS DGLux installation, browsers including Chrome do not allow such thing by default. It is not secure to load HTTP content via an HTTPS connection since that content might be compromised. So for the IFrame to work properly you need to load it from a server with HTTPS.
Another potential obstacle is Origin Policy which browser has to follow. Some domains (for example, google.com) send a header X-Frame-Options that disallow loading a page in an IFrame from the domain different from the origin. More on this topic here. However, some of the web services are more “friendly", for example, Youtube. So basically you need to make sure that the web server of the page you’re trying to load doesn’t send such a header. Use Developer Tools in Chrome to see all the error messages related to that.