| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
stuck in the '90s
Join Date: Jun 2008
Location: Baltimore, MD, USA
Posts: 123
|
Light Box (JS) & IFrame Help
Anyone know how to have a light box script load into the whole window from an iframe? Everything I've tried just loads the light box into the iframe, not the whole window. I've tried putting "_top" and even "_parent" on the links however it still doesn't load how I'd like. |
|
|
|
|
|
#3 (permalink) |
|
stuck in the '90s
Join Date: Jun 2008
Location: Baltimore, MD, USA
Posts: 123
|
Mostly cause I don't know of any other way of doing it. Here's what I need to do. The bottom iframe links to individual galleries in the top right iframe. From there the user can click on the picture and load the Light Box script, however it loads just in the iframe, not the whole window. edit: <15 post filter doesn't allow me to post an image. nationalroofdrainagedotcomslashpicture2dotpng will get you there. |
|
|
|
#6 (permalink) |
|
Semantics, yay.
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,410
|
There's probably some sort of JavaScript out there that will break it out of the iFrame ... but as an alternative you could always load up the image not in a lightbox-like container, but in a small, new, pop-up window instead. My personal advice, though, is to fix this issue at the right end -- replace the use of iFrames with something better, easier to work with, etc. |
|
|
|
#7 (permalink) |
|
the bee has grey hair
|
A quick google came up with this thread from a forum: Lightbox image viewer 2.0: load outside iframe - Dynamic Drive Forums Which then pointed to this script, which should solve your problem: Lytebox - Home |
|
|
|
#8 (permalink) | |
|
stuck in the '90s
Join Date: Jun 2008
Location: Baltimore, MD, USA
Posts: 123
|
Quote:
What would you suggest? |
|
|
![]() |
|