Is it possible to use <iframe src="www.google.com"></iframe> to show webpage images in an arcgis online popup?
Brandon
https://community.esri.com/community/gis/web-gis/web-appbuilder?sr=search&searchId=506a9f1c-8a7b-40ca-a5f7-812b9df2db1e&searchIndex=1
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-43fc-aecc-03157fa15e84&searchIndex=1
Thanks Robert. I will try this later and will be sure to mark correct after.
This is great. This works just fine. Only for https it seems.
Is you app using https protocol?
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?
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.