Page 1 of 1

gallery in iframe

Posted: 08 Apr 2012, 11:19
by jonnorman43
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

Re: gallery in iframe

Posted: 09 Apr 2012, 00:34
by mjau-mjau
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 ...

Re: gallery in iframe

Posted: 10 Apr 2012, 14:26
by jonnorman43
Hi KArl,

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