Node Loaded - JS

Q&A about the latest versions
Post Reply
Curtisio
Posts: 35
Joined: Wed Jan 09, 2013 8:29 pm

Is there something which is built into pano2vr js which is fired when node is fully loaded which I can listen for?

I need to clear the #node1,0,0,70.0,4... from the address bar when the node is fully loaded.

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

Hi Curtisio,
You can use a Node Changed, Go To URL action to trigger a javascript call.
The thing is as Pano2VR uses multi-resolution the download detection would only include the skin, images, and preview track and xml file.
The tiles are called separately.

Also, have a look at this page: https://ggnome.com/doc/javascript-api/
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/
Curtisio
Posts: 35
Joined: Wed Jan 09, 2013 8:29 pm

Perfect. Thank you
Curtisio
Posts: 35
Joined: Wed Jan 09, 2013 8:29 pm

I have added

Code: Select all

setTimeout(function(){ 
		history.replaceState(null, null, ' ');
		 }, 0);

to my jquery script file and that seems to do the trick also.
Post Reply