Sie sind nicht angemeldet.

Tourvista

Fortgeschrittener

  • »Tourvista« ist der Autor dieses Themas

Beiträge: 260

Wohnort: Leicester UK

  • Nachricht senden

1

Dienstag, 20. November 2012, 15:57

iframe not working in an iPad - Unsafe JavaScript attempt (?)

Hi all!

Thank you very much in advance for helping.

POST UPDATED...

One of our clients is trying to embed a virtual tour in a iframe, but for some reason it doesn't work on the ipad.

Here is a webpage with 4 different iframes. None of them work an an ipad.

The debug console says something about an unsafe JavaScript operation because the web page with the virtual tour is in a different domain.
I'm not convinced this is the reason why it doesn't work.

The links that look like #/scene1/ use swfaddress plugin. We've had really bad experiences combining than plugin an iframes in the past. So just in case, we always include another version which doesn't use that plugin. That would be scene1.html

Any ideas what's going on?

Cheers

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Tourvista« (21. November 2012, 18:04)


2

Mittwoch, 21. November 2012, 02:26

Tell them to try this link instead.


http://www.clients.tourvista.co.uk/vt/st…wroom/#/scene1/

Their link, listed below, goes to a 404 error page.

http://www.clients.tourvista.co.uk/vt/st…room/index.html

Tourvista

Fortgeschrittener

  • »Tourvista« ist der Autor dieses Themas

Beiträge: 260

Wohnort: Leicester UK

  • Nachricht senden

3

Mittwoch, 21. November 2012, 13:00

Thanks for your help Jarredja,

I can't find any link pointing to:

http://www.clients.tourvista.co.uk/vt/st…room/index.html


I think my client has actually changed the iframe link to point to the virtual tour version hosted in our server, as that one works ok.

I've asked them to create a new page with several iframes so it can be tested thoroughly.

I'll post that website here when it's ready.

Cheers!

4

Mittwoch, 21. November 2012, 14:55

Ok, here is the link they should be using.


http://www.externalrelations.stir.ac.uk/…wroom/#/scene1/

You should find the original link I mentioned in the iframe section of their page. They should replace it and fix their backup link too.

Tourvista

Fortgeschrittener

  • »Tourvista« ist der Autor dieses Themas

Beiträge: 260

Wohnort: Leicester UK

  • Nachricht senden

5

Mittwoch, 21. November 2012, 15:10

Hi again,

This is their iframe code:

Quellcode

1
iframe style="margin:10px 0; border:0" src="http://www.clients.tourvista.co.uk/vt/stirling_university/showroom/showroom/index.html" width="100%" height="500" border="0"><p>Your browser does not support iframes, please navigate to <a href="http://www.externalrelations.stir.ac.uk/threesixties/showroom/index.html">Showroom</a>.</p></iframe>



The url is not pointing to: http://www.clients.tourvista.co.uk/vt/stirling_university_showroom/showroom/index.html, as you mentioned.

Anyway, the goal is to make the virtual tours hosted in their server work in iframes on an iPad. At the moment there is nothing we can do as the current example is pointing to our sever, but soon we'll have a webpage with several iframes pointin to.

http://www.externalrelations.stir.ac.uk/…oom/scene1.html
http://www.externalrelations.stir.ac.uk/…room/index.html

http://www.externalrelations.stir.ac.uk/…x.html#/scene1/


Cheens

Tourvista

Fortgeschrittener

  • »Tourvista« ist der Autor dieses Themas

Beiträge: 260

Wohnort: Leicester UK

  • Nachricht senden

6

Mittwoch, 21. November 2012, 18:06

I have updated my original question and supplied a link to a webpage containing 4 different iframes.

Thank you!

7

Mittwoch, 21. November 2012, 20:50

Hi,

when the outer frame and the inner frame are on different domains - then Javascript can't access the 'top' frame object for security reasons/limitations!

The krpano viewer internally is checking that case, but maybe the swfaddress.js plugin not...
(btw - many functions of this plugin may not be able to work in such case anyway)

Best regards,
Klaus

Tourvista

Fortgeschrittener

  • »Tourvista« ist der Autor dieses Themas

Beiträge: 260

Wohnort: Leicester UK

  • Nachricht senden

8

Mittwoch, 21. November 2012, 22:05

Thank you very much for your reply Klaus!!!

I already told the client to try to host the virtual tour in the same domain as the web page containing the iframe. Hopefully that will do.

I found swf plugin an invaluable tool when I'm developing the virtual tour! It allows me to jump from one scene to other very quickly. Unfortunately it is quite inconsistent when used with iframes ...

Kind regards,

Rafael

Tourvista

Fortgeschrittener

  • »Tourvista« ist der Autor dieses Themas

Beiträge: 260

Wohnort: Leicester UK

  • Nachricht senden

9

Donnerstag, 22. November 2012, 16:17

Hi again,


So if I understand correctly, this JavaScript security thing means that the only way to make a virtual tour working in html5 environments, is hosting the virtual tour in the same domain as the website.
This can bring devastating consequences for virtual tour companies hosting their clients virtual tours.
Some of our clients simply cannot, or don't want, host the virtual tours in their sites. And I can think of a couple of clients which have iFrames of the same virtual tour in dozens of different web-sites. It would be shocking news for them to tell them to host the same virtual tour in each domain they have *wacko*

Is there a work around to solve this problem? Maybe other ways to embed the virtual tours in a website... or something like a certificate... I don't know...

Cheers

Tourvista

Fortgeschrittener

  • »Tourvista« ist der Autor dieses Themas

Beiträge: 260

Wohnort: Leicester UK

  • Nachricht senden

10

Montag, 26. November 2012, 19:46

swfaddress.js plugin could be conflicting

Hi Klaus,

In your last message are you suggesting that the swfaddress.js plugin could be conflicting. Therefore by disabling, it could resolve this?


This is our clients page and there CMS only allows them to save external content in a sub-domain...


http://www.stir.ac.uk/campus-life/accomm…oject/showroom/


http://www.externalrelations.stir.ac.uk/…xties/showroom/




Any ideas?