how to use javascript on the krpano
how to use javascript on the krpano
-
-
Hi,
there a several ways to use Javascript in or with krpano:
For calling external Javascript code from the krpano xml there are these actions available:
js
jscall
jsgetIn the HTML5 viewer it's additionally also possible to use Javascript code directly inside the xml:
https://krpano.com/docu/xml/#action.jsAnd for calling from Javascript to krpano there is the 'krpano Javascript Interface':
https://krpano.com/docu/js/#topBest regards,
Klaus -
thank you for your help,but i can't understander it ,
<action name="a" type="Javascript" autorun="preinit"><![CDATA[
alert();
]]></action>
and i put it on click,but it not work,can you give me a sample complete example,i will thank you very much.Hi,
there a several ways to use Javascript in or with krpano:
For calling external Javascript code from the krpano xml there are these actions available:
Hi,there a several ways to use Javascript in or with krpano:
For calling external Javascript code from the krpano xml there are these actions available:
js
jscall
jsgetIn the HTML5 viewer it's additionally also possible to use Javascript code directly inside the xml:
https://krpano.com/docu/xml/#action.jsAnd for calling from Javascript to krpano there is the 'krpano Javascript Interface':
https://krpano.com/docu/js/#top
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!