View Full Version : View the content of other webpages from within FPP?
WideEyes
04-25-2010, 01:50 PM
Hello everyone.
Does any of you know if it is possible to display another web page from within FPP? I would like a pop-up of an other web page without the viewer leaving the tour.
I know that http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ have this functionality, but is it possible to integrate PrettyPhoto in a tour?
Regards
Morten
sachagriffin
04-25-2010, 02:55 PM
This page for that model js details the API for calling it from flash.
http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/documentation/.
So you can call the javascript functions via the normal way with FPP.
Hello everyone.
Does any of you know if it is possible to display another web page from within FPP? I would like a pop-up of an other web page without the viewer leaving the tour.
I know that http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/ have this functionality, but is it possible to integrate PrettyPhoto in a tour?
Regards
Morten
thegoodbus
01-10-2011, 08:11 PM
So you can call the javascript functions via the normal way with FPP.
Could someone please post an example of "the normal way with FPP"?
From what I understand, this method looks something like "javascript:showprettyphoto", and then pano.swf will run a javascript function named showprettyphoto that is written inside the host html file.
I cannot get this to work. After some tinkering, I have been able to get the function call from FPP to recognize the function of the same name in the html file (before I was getting an "unrecognized object" error every time). So now Flash Tracer runs the function, but prettyphoto is not opening. In Safari and Chrome, the browser does nothing. In Firefox, the browser changes to a new window titled "javascript:showprettyphoto" and shows the text of the function, but doesn't run it. I can get prettyphoto to work from a clicked link in the html but not from FPP.
If someone has a working example they would be willing to share, I would be very appreciative. I've searched this forum, the Google Groups forum, and the PrettyPhoto forum, tried the different approaches, and can't get it to work. Thank you very much.
WideEyes
01-10-2011, 11:04 PM
Could someone please post an example of "the normal way with FPP"?
From what I understand, this method looks something like "javascript:showprettyphoto", and then pano.swf will run a javascript function named showprettyphoto that is written inside the host html file.
I cannot get this to work. After some tinkering, I have been able to get the function call from FPP to recognize the function of the same name in the html file (before I was getting an "unrecognized object" error every time). So now Flash Tracer runs the function, but prettyphoto is not opening. In Safari and Chrome, the browser does nothing. In Firefox, the browser changes to a new window titled "javascript:showprettyphoto" and shows the text of the function, but doesn't run it. I can get prettyphoto to work from a clicked link in the html but not from FPP.
If someone has a working example they would be willing to share, I would be very appreciative. I've searched this forum, the Google Groups forum, and the PrettyPhoto forum, tried the different approaches, and can't get it to work. Thank you very much.
Hi
Here is a link to another thread. The thread links to another forum where you get the code needed to open an external website within FPP.
http://flashpanoramas.com/forum/showthread.php?t=1811
Regards
Morten
thegoodbus
01-10-2011, 11:40 PM
Morten,
Thank you for your fast reply. I saw this thread earlier when I thought my glitch was due to a different problem. I'll take a second look at this tomorrow and post how it worked. Thanks.
WideEyes
01-10-2011, 11:56 PM
Great :)
I haven't made it work - but I don't do much coding my self. But I sure would love to see it work - just to know that it can be done :)
Regards
Morten
In my tests I found that miniwin can be opened from spot to show external content of any html page.
But there is a problem I couldn't solve. If somebody click beside of miniwin on the pano, miniwin will jump behind the main window and remain open. (Or if you are fullscreen it opens, but you wouldn't see it until return to window again.)
The possible solution I thought about, is to cover the pano with big transparent plate and if visitor click on it, it forces miniwin to close. Of course it doesn't solve the problem if you are fullscreen.
Can it be done? - to close miniwin from outside of it.
uudu
sachagriffin
01-11-2011, 02:45 PM
In my tests I found that miniwin can be opened from spot to show external content of any html page.
But there is a problem I couldn't solve. If somebody click beside of miniwin on the pano, miniwin will jump behind the main window and remain open. (Or if you are fullscreen it opens, but you wouldn't see it until return to window again.)
The possible solution I thought about, is to cover the pano with big transparent plate and if visitor click on it, it forces miniwin to close. Of course it doesn't solve the problem if you are fullscreen.
Can it be done? - to close miniwin from outside of it.
uudu
You have'll always have the fullscreen issue, unless you prepend every one of these with a command to drop out of fullscreen.
Some of these boxes will autohide flash, and also have the transparent plate behavior. Though hiding a complex flash tour in the DOM might be quite cross-browser or buggy or reset it, though a 0px resize looks like it works better.
WideEyes
01-11-2011, 10:08 PM
In my tests I found that miniwin can be opened from spot to show external content of any html page.
But there is a problem I couldn't solve. If somebody click beside of miniwin on the pano, miniwin will jump behind the main window and remain open. (Or if you are fullscreen it opens, but you wouldn't see it until return to window again.)
The possible solution I thought about, is to cover the pano with big transparent plate and if visitor click on it, it forces miniwin to close. Of course it doesn't solve the problem if you are fullscreen.
Can it be done? - to close miniwin from outside of it.
uudu
Hi uudu
May we see your example with miniwin??
That would be great :)
Regards
Morten
Here it is http://tinyurl.com/6aajeu7
Will change link soon as there is no reason for everyone to lurking around at my home endlessly.
There are two miniwins.
First is one of sculptures on TV. The reason why I started to play with miniwin was - FPP forces object movies to rotate by it's framerate. To avoid this, was to put it in other window. The ones, opened inside of pano, rotate as mad dogs.
Second is under logo on right-top. It is my pano from other site. You can go fullscreen and back to miniwin.
I know about issue with going fullscreen with main pano as sachagriffin pointed.
Not every pano need it and we can sacrifice something sometime if will have other benefits.
Still remain problem, I am not able to solve - is there a way to close miniwin by clicking on pano beside miniwin?
uudu
sachagriffin
01-12-2011, 03:34 PM
More javascript to close that popup.
Some sample code.
http://www.codingforums.com/archive/index.php/t-74959.html
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.