Results 1 to 2 of 2

Thread: PHP Photo Album script v2.11 iframe issue

  1. #1
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP Photo Album script v2.11 iframe issue

    1) Script Title: PHP Photo Album script v2.11

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...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
    Code:
    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,
    Lee

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Probably the easiest would be a variation on Scenario 4 from the bottom of the supplement page:

    http://www.dynamicdrive.com/dynamici...suppliment.htm

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

    http://www.dynamicdrive.com/dynamici...ebox/index.htm

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

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

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

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •