You are not logged in.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,019

Location: Denmark

Occupation: Photographer

  • Send private message

1

Tuesday, May 26th 2020, 3:09pm

Popup iframe not working w. all websites

I am experimenting with the popup iframe option and
discovered that many websites do not work.

For example www.google.com or google maps do not show up at all.
Also some other websites.

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,019

Location: Denmark

Occupation: Photographer

  • Send private message

2

Tuesday, May 26th 2020, 3:14pm

Here an example http://360-foto.dk/nationalhistorisk-mus…,-75.83,120,0,0);

The last red spot is Google.

<layer name="popup6" url="redlink.png" scale="0.3" visible="true" keep="true" align="lefttop" x="100" y="400"
html="Web"
onclick="popup('iframe','https://www.google.com/',800, 600, true);"
/>

Another limitation seems to be that it can not save cookies. That means you get the cookies popup for every page you browse through a website.

This post has been edited 1 times, last edit by "HansNyb" (May 26th 2020, 3:55pm)


3

Tuesday, May 26th 2020, 4:26pm

Hi,

every website can block its usage inside an iframe if it wants - and the Google search page probably don't want to get embedded ;-).

About cookies and external iframes - sorry, no experience with that, but maybe there is an iframe setting to allow that..

Search in the popup example xml for this line:

Source code

1
calc(popup.datacontent, '<iframe style="position:absolute;width:100%;height:100%;top:0px;left:0px;" src="'+content+'" frameborder="0" allowfullscreen></iframe>');

That's the whole iframe html code that is used, if necessary you can add additional settings there.

Best regards,
Klaus

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,019

Location: Denmark

Occupation: Photographer

  • Send private message

4

Tuesday, May 26th 2020, 6:39pm

Is ther a way of setting the size in percentage.
I tried this but it did not open
onclick="popup('iframe','slotshave.pdf',80%, 80%, true);"

neither this width:80%,height:80%,

pdf works fine BTW

HansNyb

Professional

  • "HansNyb" started this thread

Posts: 1,019

Location: Denmark

Occupation: Photographer

  • Send private message

5

Tuesday, May 26th 2020, 6:58pm

and the Google search page probably don't want to get embedded .


If Google do not want there are others.

Bing Bing

I love this iFrame. Added pdf, youtube and Bing to the examples.
Very usefull

I assume I can ad it within a single scene also on hotspot or button.

6

Wednesday, May 27th 2020, 12:32pm

Is ther a way of setting the size in percentage.


Look in the popup <action> for these lines:

Source code

1
2
width=calc(min(width,global.stagewidth*0.9)),
height=calc(min(height,global.stageheight*0.8)),


and replace them with these:

Source code

1
2
width=get(width),
height=get(height),