Page 1 of 1

Calling a JavaScript function from QT hotspot

Posted: Tue Nov 23, 2010 11:33 am
by wolff
Hi there,
is it possible to call an external JavaScript function from an panorama area hotspot to open the next panorama?
(I tried javascript:onclick="pano2();" , where the "pano2()" is the function that opens the next Panorama within the Html, but it didn't work.)

Thank you for any help!

Regards,
Wolff

Re: Calling an external JavaScript function with area hotspo

Posted: Tue Nov 23, 2010 11:52 am
by Hopki
Hi
Please see Here: http://gardengnomesoftware.com/wiki/Pan ... Script_API
Not sure if its exactly what you want but should point you in the right direction.
Regards
Hopki

Re: Calling an external JavaScript function with area hotspo

Posted: Tue Nov 23, 2010 2:39 pm
by wolff
Hi Hopki,
Thanks for the advice. I've come across the API before - but in fact I'm working without any GG template or the GG js file and without any flash!
I try to make my own Quicktime panorama module, but if it comes to hotspots I'm missing something: In flash we use the IDs and proxies to identify a hotspot marker on the floorplan to the hotspot itself (and vice versa). But with Quicktime this is not possible.

Any ideas? Or am I missing something (else ;) )?
Best regards, W.

Re: Calling an external JavaScript function with area hotspo

Posted: Tue Nov 30, 2010 11:35 am
by wolff
It seems that it's not possible to call a function from a Quicktime hotspot anymore (or at least not much more than javascript:window.open(...).

http://developer.apple.com/library/mac/ ... Script.pdf
Important: Starting with QuickTime 7.1.5, you can no longer issue javascript:// URLs or call JavaScript functions
directly from within a QuickTime movie. This feature was removed from QuickTime for security reasons. This
document includes techniques for working around this change.
:(

Regards, W.