You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, March 31st 2019, 1:38pm

Call js from krpano

Hi.
I'm trying to call the js function from krpano and get an error.


<hotspot
type="text"
html=""
renderer="css3d"
onloaded="init_hotspot();"
distorted="true"
name="hotspot_1"
ath= "-55.25" atv= "26.31"
scale="1"
onclick="js(onHotspotClick([{a:'aaa'}]))"
/>
WARNING: js() - calling Javascript "onHotspotClick([{a:'aaa'}])" failed: SyntaxError: missing ) after argument list


What could be the problem?