Sie sind nicht angemeldet.

freezyh

Anfänger

  • »freezyh« ist der Autor dieses Themas

Beiträge: 15

Wohnort: China

Beruf: study

  • Nachricht senden

1

Dienstag, 1. September 2015, 08:46

how to use javascript on the krpano

how to use javascript on the krpano

2

Dienstag, 1. September 2015, 09:00

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
jsget

In the HTML5 viewer it's additionally also possible to use Javascript code directly inside the xml:
http://krpano.com/docu/xml/#action.js

And for calling from Javascript to krpano there is the 'krpano Javascript Interface':
http://krpano.com/docu/js/#top

Best regards,
Klaus

freezyh

Anfänger

  • »freezyh« ist der Autor dieses Themas

Beiträge: 15

Wohnort: China

Beruf: study

  • Nachricht senden

3

Mittwoch, 2. September 2015, 04:23

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. *smile*
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
[url='http://krpano.com/docu/actions/#jscall']jscall

jsget

In the HTML5 viewer it's additionally also possible to use Javascript code directly inside the xml:
http://krpano.com/docu/xml/#action.js

And for calling from Javascript to krpano there is the 'krpano Javascript Interface':
http://krpano.com/docu/js/#top

Best regards,
Klaus[/url]

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »freezyh« (2. September 2015, 04:36)