Custom HTML Button Action  

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
VC2B
New member
 
Topic author
Posts: 6
Likes: 1 post
Liked in: 0 post
Joined: Fri Feb 23, 2018 3:38 pm
Info

Custom HTML Button Action

by VC2B » Fri Feb 23, 2018 3:50 pm

How can I put a "next" action on a custom HTML button that is outside the container DIV in a standard Panotour template?

User avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Custom HTML Button Action

by benji33 » Tue Feb 27, 2018 4:33 pm

Yes. Use this javascript action on the click action of the button : document.getElementById('krpanoSWFObject').call("loadNextScene()");

VC2B likes this post.

no avatar
VC2B
New member
 
Topic author
Posts: 6
Likes: 1 post
Liked in: 0 post
Joined: Fri Feb 23, 2018 3:38 pm
Info

Re: Custom HTML Button Action

by VC2B » Wed Feb 28, 2018 4:19 pm

Cool, thanks!

Is there a page where I can see all the functions I can call via javascript, replacing "loadNextScene ()"?

User avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Custom HTML Button Action

by benji33 » Fri Mar 02, 2018 12:46 pm

No it's not available, it will be great you're right !
But the complexity here is that many actions are available into a tour only when some conditions are reached.

no avatar
VC2B
New member
 
Topic author
Posts: 6
Likes: 1 post
Liked in: 0 post
Joined: Fri Feb 23, 2018 3:38 pm
Info

Re: Custom HTML Button Action

by VC2B » Fri Mar 02, 2018 2:21 pm

Very well, I get it. My need is to create something like a scene history in which the user can go back to a specific scene, for example, being on scene # 9 he can go back to scene # 4, and also the reverse if he is on scene # 4 it can advance to # 7. It is possible?

User avatar
benji33
Kolor Team
 
Posts: 5848
Likes: 92 posts
Liked in: 199 posts
Joined: Tue Apr 09, 2013 10:59 am
Location: France
Info

Re: Custom HTML Button Action

by benji33 » Fri Mar 02, 2018 5:03 pm

You have to implement a history hash detector. But it's possible.
So the Url will be modified on each scene.

The Panotour deep linking feature is not designed to do that.

User avatar
360-compunics-com-ni
Member
 
Posts: 418
Likes: 15 posts
Liked in: 163 posts
Joined: Wed Dec 17, 2014 12:37 am
Location: León, Nicaragua
Info

Re: Custom HTML Button Action

by 360-compunics-com-ni » Sat Mar 03, 2018 12:39 am

Hi,

not sure if i got your idea right, are you looking for a way to switch back to the scene that was displayed last, or do you want to be able to select a pano but only from the list of already seen panos?
For the 1st scenario i do have a custom plugin, you can assign the action to a PTP-button or call it like this:
Code: Select all
document.getElementById('krpanoSWFObject').call("ShowLastSeenPano()");


Feel free to contact me at any time if you are interested.
Best wishes,
Michael Brüning
Out now: DeviceCheck for PTP plugins! https://www.kolor.com/forum/viewtopic.php?f=40&t=37446

Want to know how clients use your tours? Google Analytics Track Events plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=34442

Add actions to your hotspots: Hotspot Actionlist plugin: http://www.kolor.com/forum/viewtopic.php?f=40&t=35829

no avatar
VC2B
New member
 
Topic author
Posts: 6
Likes: 1 post
Liked in: 0 post
Joined: Fri Feb 23, 2018 3:38 pm
Info

Re: Custom HTML Button Action

by VC2B » Tue Mar 06, 2018 3:09 pm

Hi Michael

I want to create a list of already seen panos to click and load one them, not exactly the last one, but anyone in the list.


Who is online

Users browsing this forum: No registered users and 3 guests