Search…

X3 Photo Gallery Support Forums

Search…
 
jonnorman43
Topic Author
Posts: 15
Joined: 10 Mar 2012, 11:14

gallery in iframe

08 Apr 2012, 11:19

Hi there

Ive been asked to create some externat html links to a iframe so basically the menu is in html along side the embeded gallery.

I've worked out most of the code but for some reason im unable to get it to load different pages from within the gallery.

if you take a look at the code here.... http://sherwoodsfabrics.co.uk/01/fabrics.html you should be able to see what ive done, also ive tried to make a html page with the gallery embedded and get the iframe to call from there but this does not work either. i think it may be something to do with swfaddress but im not too sure any help appreciated. cheers
jon
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: gallery in iframe

09 Apr 2012, 00:34

I am not quite sure about this, but I would try to embed the SWFAddress javascript also into the container document that loads the iframe, and also SWFObject ...
Code
<script type="text/javascript" src="imagevue/iv-includes/assets/js/swfobject.js"></script>
<script type="text/javascript" src="imagevue/iv-includes/assets/js/swfaddress.js"></script>
Is that loadintoIframe function working properly? I mean, you have tried it with other pages? I am not sure this would work properly with #anchor tags, as this script may attempt to load a new URL into the iframe ... then if it detects that the URL that you want to load already exists (regardless of #anchor), it may simply not do anything ...

Instead of using an iframe, why not just embed the imagevue2.swf into that fabrics.html page? As long as SWFAddress javascript is added, you can use html links with anchor tags to control the location of the gallery, and you avoid iframes in the first place ...
 
jonnorman43
Topic Author
Posts: 15
Joined: 10 Mar 2012, 11:14

Re: gallery in iframe

10 Apr 2012, 14:26

Hi KArl,

Thanks for the tips, i have just embedded the swf and its worked a treat :-)