refreshing a gallery hotspot on opening and closing

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
Mehelle
Posts: 14
Joined: Mon Feb 24, 2025 4:59 pm

Hello,

I have a small error I'm trying to fix in my tours. I have a series of hotspots each attached to a particular image in a tour through the assigned node:
Screenshot .jpg
Screenshot .jpg (181.29 KiB) Viewed 20317 times
(the user clicks on the window here to open the gallery to a specific image)
Screenshot 2.jpg
Screenshot 2.jpg (124.52 KiB) Viewed 20317 times
(The image opens in a gallery with navigation arrows on either side that open the neighboring images)
Screenshot 3.jpg
Screenshot 3.jpg (131.35 KiB) Viewed 20317 times
(the arrow has navigated the gallery to the next image)

This all works well. Where things get a little mixed up is if the user exits the gallery on a different image (for example using the arrows to navigate from image 2 to image 3 then closing the window) when they reclick the same polygon hotspot they still see image 3 rather than the assigned image 2. Its as if the gallery is caching where the user was in the gallery and reopening there rather than refreshing and opening the gallery from scratch at the assigned node.

A slight wrinkle to this, it only happens when closing and reopening the same hotspot. If the user opens hotspot 1, navigates around, closes it and opens hotspot 2, then reopens hotspot 1 again it will open the assigned image not the one that was open when the window closed.

Any way to 'clear the cache' so to speak on a gallery to make sure it is always opening in its assigned state rather than where it was when previously closed?

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

Hi Mehelle,
The gallery is opening in a text box using an iframe.
What should be happening is the hotspot sets the iframe that then displays the gallery project, using a Set Value action setting teh iframe to the text box.
The close button should have the action that unloads the iframe; this is done by using the Set Value action, which sets nothing, so leaving it blank.
This removes the iframe by unloading it.
The next time the hotspot is clicked, it will set the iframe so starts from the start image.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Mehelle
Posts: 14
Joined: Mon Feb 24, 2025 4:59 pm

Thank you for the explanation, Hopki! This makes total sense. Is there a way to add an action that will make it so if the user closes the iframe by clicking outside of it (rather than hitting the close button) it becomes unloaded?

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

Hi Mehelle,
You can copy the close button actions and paste them into the "Screen Tint" rectangle.
This will mean the close button and all the surrounding area will close the gallery.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Post Reply