Using javascript calls no longer possible in 2.x?  

Share your tips and tricks here or get help with any Panotour 2.0+ problem!
No bug reports (of any kind) in this forum!
no avatar
Patrick_s
New member
 
Topic author
Posts: 5
Likes: 0 post
Liked in: 0 post
Joined: Wed Oct 09, 2013 9:30 pm
Location: Belgium
Info

Using javascript calls no longer possible in 2.x?

by Patrick_s » Sun Apr 13, 2014 3:22 pm

Hi,

I've been using javascript calls from within my html code to switch from pano to pano. I have also been using javascript function calls from hotspots within my tours.
I'm unable to find this features in the 2.0 version. Can anyone tell me if this feature has been discontinued or simply replaced somewhere else? Haven't been able to find it yet...

Thanks!
Belgian webdeveloper and photographer.

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

Re: Using javascript calls no longer possible in 2.x?

by bdd » Mon Apr 14, 2014 2:16 pm

Patrick_s wrote:Hi,

I've been using javascript calls from within my html code to switch from pano to pano. I have also been using javascript function calls from hotspots within my tours.
I'm unable to find this features in the 2.0 version. Can anyone tell me if this feature has been discontinued or simply replaced somewhere else? Haven't been able to find it yet...

Thanks!



If you want to call JS functions from your hotspots, just modify the action of the spot style you want to use for your spots.
https://www.youtube.com/watch?v=B0LkUg68Klo

Gérald

no avatar
Patrick_s
New member
 
Topic author
Posts: 5
Likes: 0 post
Liked in: 0 post
Joined: Wed Oct 09, 2013 9:30 pm
Location: Belgium
Info

Re: Using javascript calls no longer possible in 2.x?

by Patrick_s » Mon Apr 14, 2014 2:31 pm

Interesting, didn't think to look for it in the theme section. Many thanks for that.

And how do I load a panorama in the tour from an external javascript function? There are no more individual XML files to rely on, and the other XML file is encrypted.
Belgian webdeveloper and photographer.

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

Re: Using javascript calls no longer possible in 2.x?

by bdd » Mon Apr 14, 2014 2:36 pm

Patrick_s wrote:Interesting, didn't think to look for it in the theme section. Many thanks for that.

And how do I load a panorama in the tour from an external javascript function? There are no more individual XML files to rely on, and the other XML file is encrypted.



The action that loads scene is in the xxx_core.xml file.
It is called mainloadscene.
The parameter of this call is the ID (the name) of the scene.


Who is online

Users browsing this forum: No registered users and 2 guests