View Full Version : load FPP in a DIV
Jaume
11-15-2008, 02:50 PM
I just can load a pano in a <div> if these pano is in the same folder of the page that contains the div. Don't you know why?
Scott Witte
11-15-2008, 04:33 PM
Post the relavant portion of your html code to be sure, but I expect your paths just aren't correct.
Jaume
11-16-2008, 01:55 PM
if i open the html that contains the Pano, it works fine. But when i call it to open it inside a <div>, the html doesn't open the swf, just show the text i written in the div in case the swf doesn't load correctly.
(the paths are correct, if not, i couldn't see the swf embed in the html when i try to open it with Safari)
Scott Witte
11-16-2008, 04:38 PM
I'm out of my element here since I am no html expert. For what it is worth I would have approached this as a frame instead of a div since I know that works. I also know it is possible inside a div, but have not personally experienced doing that. Do a google search and I'm sure you will find references.
Jaume
11-16-2008, 06:46 PM
Thanks for your interest Scott. I will try to find the solution ;)
Jaume
11-17-2008, 12:03 AM
I can't find a solution in google, yahoo, etc....
This is the specific problem:
I got a function thet loads a pano in a div:
<script type="text/javascript" src="swfobject.js">
function loadPano(temp) {
var so = new SWFObject (temp, "pano", "550", "400", "9", "#666666");
so.write("content");
}
</script>
------
Then i got a div with id=content, where the pano will be loaded and the button that calls the function with the correct path.
<a href="#" onclick="loadPano('360/Tren.swf')" />
And it doesn't works.
Well if i change the path and i put "Tren.swf" in the parent directory, i can see the pano (changing the route in <a href="#" onclick="loadPano('Tren.swf')" /></a> ). But with the route in other paths it's impossible to load it( loading:failed). I've tried to open the swf with flash player in other directories and i don't have problems to open it.
I don't know why, i have changed paths, etc etc.... but nothing.
I want to load in a div of a main page differents panos located in different folders. Calling the panos using buttons located too in the main page...
africano
11-18-2008, 09:44 AM
Hi, It can be done.....Ive been playing around and trying to learn FPP and have been doing some tests.....I dont have the files in front of me but this pano is inside a div, have a look and see if you can tell how it was done, good luck!
http://www.elchevirtual.com/A12/
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.