Use iframe to show webpage image in popup

9008
23
Jump to solution
12-22-2017 11:58 AM
BrandonPrice
Occasional Contributor

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-40c...

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

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).

View solution in original post

23 Replies
XanderBakker
Esri Esteemed Contributor

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...

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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).

BrandonPrice
Occasional Contributor

Thanks Robert. I will try this later and will be sure to mark correct after.

Brandon

0 Kudos
BrandonPrice
Occasional Contributor

This is great. This works just fine. Only for https it seems.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Is you app using https protocol?

0 Kudos
BrandonPrice
Occasional Contributor

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.

0 Kudos
BrandonPrice
Occasional Contributor

but it actually doesn't work using the sandbox either. It might not have to do with the app but esri popups overall

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

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.

BrandonPrice
Occasional Contributor

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?

0 Kudos