Search found 5 matches

by jpatten
Tue Feb 14, 2017 3:55 am
Forum: Pano2VR/Object2VR Skins
Topic: Javascript function tied to hotspot and not entire canvas?
Replies: 1
Views: 2616

Javascript function tied to hotspot and not entire canvas?

Hi All, I have a javascript function that is being called from a hotspot. The function looks like the following in the skin.js: this._svg_1.onclick=function (e) { window.addEventListener('click', function() {liveCode.myLiveCodeHandler2();}); } This works the first time you click the hotspot. However...
by jpatten
Sun Feb 05, 2017 11:08 pm
Forum: Pano2VR/Object2VR Skins
Topic: Hotspots and JavaScript removeEventListener?
Replies: 1
Views: 2485

Re: Hotspots and JavaScript removeEventListener?

Hi All, Not sure if this will help explain my javascript removeEventListener challenge, but it may give other pano authors an idea of what is possible. I posted a mobile example here: https://dl.dropboxusercontent.com/u/6767916/Pano%20JavaScript%20Tester.livecode.zip https://dl.dropboxusercontent.co...
by jpatten
Fri Feb 03, 2017 7:45 pm
Forum: Pano2VR/Object2VR Skins
Topic: Hotspots and JavaScript removeEventListener?
Replies: 1
Views: 2485

Hotspots and JavaScript removeEventListener?

Hi All, How do you stop an hotspot EventListener from triggering by just clicking within a pano? https://dl.dropboxusercontent.com/u/6767916/EventListener-Challenge2.gif I have a hotspot that triggers and EventListener for a function in an app, within a browser object. There are four hotspots in the...
by jpatten
Thu Feb 02, 2017 9:16 pm
Forum: Pano2VR/Object2VR Skins
Topic: Hotspot Javascript and onclick function triggering?
Replies: 2
Views: 2959

Re: Hotspot Javascript and onclick function triggering?

Why does that answer always come to you after you post a cry for help?!! :) I had: pano.event.addListener('jp_hotspot','click', function() {liveCode.myLiveCodeHandler();}); which should have been: window.addEventListener('click', function() {liveCode.myLiveCodeHandler();}); "pano." does no...
by jpatten
Thu Feb 02, 2017 8:25 pm
Forum: Pano2VR/Object2VR Skins
Topic: Hotspot Javascript and onclick function triggering?
Replies: 2
Views: 2959

Hotspot Javascript and onclick function triggering?

Hi all, I’m trying to trigger a javascript function in a pano with a hotspot. The javascript function triggers a handler outside of the vr in a LiveCode project. I am not a javascript programmer and have a very basic understanding of javascript. I started by getting some basic javascript working by ...