Is it possible to use <iframe src="www.google.com"></iframe> to show webpage images in an arcgis online popup?
Brandon
Solved! Go to Solution.
I was able to add an iFrame to a popup in a JS API Sample in the sandbox so it should be possible in WAB as well:
(a google maps url was used).
I would say no. Here is a list of supported HTML in a pop-up: Supported HTML—ArcGIS Online Help | ArcGIS or you would have to code it using https://community.esri.com/groups/web-app-builder-custom-widgets?sr=search&searchId=37e1a1d7-4b3f-43...
I was able to add an iFrame to a popup in a JS API Sample in the sandbox so it should be possible in WAB as well:
(a google maps url was used).
Thanks Robert. I will try this later and will be sure to mark correct after.
Brandon
This is great. This works just fine. Only for https it seems.
Is you app using https protocol?
I think so. It is a story map. I will double check again but I tried https which worked but I couldn't get http to work.
but it actually doesn't work using the sandbox either. It might not have to do with the app but esri popups overall
Brandon,
In today’s browsers security you will not be able to have a website in an iFrame unless the site is from the same source or has a X-Frame-Options in the header that allows the site to show in an iFrame. You can Google about this.
Hi Robert,
Thanks for the info. I read up on what you were saying and found the online articles helpful. I could not find anything about the iframe being from the same source. Are you saying if your site is http you can use a http iframe but not a https iframe? I believe ESRI has their apps designed to run on https only. If this is correct, can't this be changed?