How to stop auto rotation on exit from iframe

Q&A about the latest versions
Post Reply
vasja64
Posts: 7
Joined: Mon Jan 10, 2011 2:35 pm

How to stop auto rotation on exit from iframe

Post by vasja64 » Thu Nov 07, 2019 6:04 pm

Hello!
I am working with a lot of panoramas which are not in same project.
They all are running on a touch screen kiosk locally.
I put them in iframe as a text box.
Problem is that i can not figure out how to stop autorotation when user closes an iframe.
I this case all panoramas are running in background and are using processor an memory.
Can someone help me?

User avatar
Hopki
Gnome
Posts: 9595
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: How to stop auto rotation on exit from iframe

Post by Hopki » Thu Nov 07, 2019 6:18 pm

Hi,
If you are using an iframe then why not dynamically load the tours.
As an example have one text box to display the panoramas, this will have no text.
You then have buttons that have a "Set Value" action, this sets the iframe to the text box and the panorama shows.
You may also want to have the text box hidden so the button will also need a show text box action.
The close button would have a "Set Value" action which will be blank, this will "unload" the panorama.
Again you may want to hide the text box as well. But if the text box has no background or border I suspect there would be no need to hide and show it.
This way you only have one panorama displaying at a time.
Regards,
Hopki

vasja64
Posts: 7
Joined: Mon Jan 10, 2011 2:35 pm

Re: How to stop auto rotation on exit from iframe

Post by vasja64 » Thu Nov 07, 2019 6:30 pm

Thank you Hopki for fast response!
I have to read your answer few times and try to understand what you want so say…:)

User avatar
Hopki
Gnome
Posts: 9595
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: How to stop auto rotation on exit from iframe

Post by Hopki » Thu Nov 07, 2019 8:34 pm

Hi,
From what I understand you have several tours (outputs).
I am working with a lot of panoramas which are not in same project.
You have a master project and you open each panorama using an iframe in a text box.
I put them in iframe as a text box.
As I understand it the problem is you have a text box for each panorama and they are all rotating taking up computer resources even though that may be hidden.
Problem is that i can not figure out how to stop autorotation when user closes an iframe.
So my suggestion is to use one text box.
I am assuming that you have buttons to open each panorama/tour.
Again I am assuming you have built the interface with Pano2VR's skin editor.

Please see the attached project.
Regards,
Hopki
Attachments
iframe.zip
(3.79 KiB) Downloaded 12 times

vasja64
Posts: 7
Joined: Mon Jan 10, 2011 2:35 pm

Re: How to stop auto rotation on exit from iframe

Post by vasja64 » Thu Nov 07, 2019 10:06 pm

Thanks! I forgot to tell you, i am using Pano2vr 5.2.5.

Tomorow i Will make an example of what i am doing and Will send you…

Regards!

vasja64
Posts: 7
Joined: Mon Jan 10, 2011 2:35 pm

Re: How to stop auto rotation on exit from iframe

Post by vasja64 » Fri Nov 08, 2019 10:15 am

Hello Hopki!
Here is my simple example:
http://www.kocevska.com/hopki/autostop.zip

Would you be so kind to add your "magic" to solve my problem?

Thanks in advance!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests