View Full Version : PHP Photo Album script v2.11 iframe issue

04-29-2010, 03:00 PM
1) Script Title: PHP Photo Album script v2.11

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/php-photoalbum.htm

3) Describe problem:

Hi There, The issue I am having is that I use this gallery within a iframe, now it all works OK apart from when I open the Larger image by clicking on the thumbnail the large version is stuck inside the iframe, my iframe is quite small enough to see a 2x2 thumbnail but I have a javascript scroller to scroll down to see more pics.

I don't think there is anything wrong as such with the code, if I look at my gallery.php on it's own outside of the iframe it all works great but the fact the popupesk window is stuck inside the iframe ruins the effect.

I did replace
thumbnailviewer.loadimage with window.open but this opens it in an entirely new tab rather than the very nice lightbox style framed popup.

If there is anything I can do to make the popupesk image to appear over the main page?

Many thanks in advance,
All the best,

04-30-2010, 01:43 PM
Probably the easiest would be a variation on Scenario 4 from the bottom of the supplement page:


For that to work out, you would install the Facebox script:


on the top page, and instead of (as shown on the supplement page):

onphotoclick:function(thumbref, thumbindex, thumbfilename){
jQuery.facebox('<img src="' + thumbref.src + '" />')


onphotoclick:function(thumbref, thumbindex, thumbfilename){
parent.jQuery.facebox('<img src="' + thumbref.src + '" />')