Page 1 of 1

Can a hotspot to control an external javascript in html?

Posted: Wed Nov 16, 2011 5:06 am
by Kristoffer
(This question is for the HTML5 version, but there is no forum for that, and as I understand it, the API is very similar.)

I'm using pano.openNext in a javascript to load panoramas, but I would also need the hotspots (both in panorama and minimap) to communicate back to javascript.
Preferably sending back what xml-file is loading.

Is this possible?

Re: Can a hotspot to control an external javascript in html?

Posted: Thu Dec 08, 2011 11:58 am
by commodore64
the documentation is sadly lacking much on the scripting.. : /

basically take a look at skin.js, insert your own code there.

For example,
on hotspot click, insert your function there,
so you can catch which hotspot(id) is clicked.