How do I display an external webpage within a Pega 7 Application?
We have a Pega 5.5 application that currently displays a separate standalone application within the Pega display. It does this by use of the "Frameset" section of the HTML tab on a Harness. As we move to Pega 7, we still have the need to display that standalone application within Pega. I've read some discussion about Framesets not being supported in HTML5. I also considered trying to use iframes, but I read another post that indicated that is being deprecated? So, I'm at a loss as to what to try and how to make it work. Can anyone provide a way to display a separate application within a window in Pega that would be supported by Pega 7 and HTML 5 standards? Thanks in advance.
***Edited by moderator, Maryrita: moved to Product Support from Upgrade Center***
I would not say iframes are deprecated. HTML5 still supports iframes. And Pega 7 uses HTML5. Maybe the post or the comment you found was taken out of context a bit?
In Pega 7 we do try to avoid iframes wherever necessary. Most notably for portals that will be used on mobile devices. For recommended/best mobile support, a portal using single-document mode will avoid the extra iframes. e.g. The later versions of the CaseWorker portal comes OOTB more mobile friendly, offline enabled, and starts you out in single document mode.
Now regarding your requirement, you could create a non-auto generated section and use an iframe to load your external content. Just be cognizant of cross domain issues, or X-FRAME options your external content provider my have set in the response headers which would prevent you from doing this.
The iframe option worked after a content security policy was created and attached to the application rule. BUT, it seems it didn't take effect until after a server reboot happened. So, I thought it didn't work for a week and then it started working after a server maintenance night. I know that had to be the reason, because the code didn't change and it started working on a later attempt.