January 21, 2013 at 3:00 pm #1942
i have not tried this myself, but you can get an embedded pano #ID by reviewing a page w an embedded pano’s source, panopress gives each embed a unique ID like “pp_7540” which you would call w the js interface as desired
note – i edited the topic title for clarityMay 6, 2013 at 7:03 pm #2233
I’m trying to do this as well without success.
I’m using the latest version of PanoPress 1.1 and when I embed a panorama in a page and then view the source for the page I can’t see what the unique pano ID# is.
Here is part of the code I get when I view source on the WordPress page with the embed. (Note I replaced my IP with X’s)
<!– PanoPress [1.1] –>
<div class=”pp-embed” style=”position:relative;width:100%;height:100%;”>
<div id=”pp_0″ style=”width:100%; height:100%”><p></p></div>
<!– /PanoPress –>
I tried using “pp_0” as my unique pano ID# but I get the same number for every panorama that I embed so I don’t think pp_0 is the unique ID.
Here is a very simple example of what I’m trying to do:
A button up in the header:
Move pano to the right
A script in the footer:
As you can see I’ve entered “pp_0” as the panorama ID but this returns a null value.
So how do I get the real unique panorama ID?
Thank you!May 8, 2013 at 7:19 pm #2234
Sam RohnKeymasterMay 9, 2013 at 12:20 am #2235
From what I figure from the code it seems like panopress generates a random ID# every time a page is requested. It is some random number between pp_1000 and pp_9999.
I’m hoping I can somehow get what this id# is and then be able to call it.
My goal is to be able to have buttons like (Menu, Fullscreen, Sound Volume, Map) in the header and footer of my WordPress theme and then have them talk to krpano.
Also, Omar. Does this post help you? http://zehfernando.com/2011/getting-the-swfs-html-objectembed-id-from-within-the-flash-movie-itself/#comments
Here is a VERY simple example of what I want to do:
//"krpanoSWFObject" is the default. Panopress names this "pp_????"
And then here is a simple HTML button that you could put in the header of the WordPress theme to call the function in the footer.
When I click on the button in the header it calls the function in the footer which calls krpano to turn off the sound.
This all works when I put it in an HTML file and embed the HTML file with panopress but I want these buttons to be global for the whole wordpress site.
Thank you!May 9, 2013 at 12:24 am #2236
Woops the code didn’t show right in the last post because of the “<a href”
a href="#" align="right" onclick="soundOff();" style="border:2px solid white; text-decoration:none; padding:5px;margin:5px;">Sound Off
You must be logged in to reply to this topic.