Sie sind nicht angemeldet.

1

Freitag, 26. April 2013, 10:47

Need help for Js plugin integration

Hi all. I am novice with krpano javascript plugins, I have an html5 animation and I tried to integrate it into a tour using the krpano plugin interface but without success! Im very confused, I think the plugin interface documentation is missing some details.. My question is: Where do I insert the animation scripts into the js plugin interface file ? given that the animation is composed of: javascript file + a script integrated in the html page (<script>...</script>).

Thank you in advance!

2

Sonntag, 28. April 2013, 11:57

Any advice?! I tried adding the canvas script of the animation code (including in the html page within <script>...</script>) with appendChild but I dont know how exactely to do this.. I can only see the handcursor when I hover the plugin aerea ! *huh*

3

Dienstag, 30. April 2013, 14:21

Any idea?!! I need some Tips please *attention*

4

Dienstag, 30. April 2013, 14:40

Hi,

when I understand your question correctly, then you are asking for how to load dynamically other scripts, right?

That would be possible either via:
  • XMLHttpRequest and eval()
or via dynamically creating and adding <script> elements (and using the onload callback) - e.g.
  • var script = document.createElement("script")
  • script.onload = ...
  • script.src = ...
  • document.body.appendChild(script)
Best regards,
Klaus