Old 06-06-2008, 09:25   #1 (permalink)
dawiyo
stuck in the '90s
 
dawiyo's Avatar
 
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.
  Reply With Quote
Old 06-06-2008, 09:40   #2 (permalink)
Limbo
This week, mostly.
 
Limbo's Avatar
 
Join Date: Feb 2005
Posts: 8,157
It's impossible - why an Iframe? Another approach might be better?
__________________
  Reply With Quote
Old 06-06-2008, 09:54   #3 (permalink)
dawiyo
stuck in the '90s
 
dawiyo's Avatar
 
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.
  Reply With Quote
Old 06-06-2008, 09:55   #4 (permalink)
Anxious
the bee has grey hair
 
Anxious's Avatar
 
Join Date: Jun 2007
Location: Glasgow
Posts: 3,583
Send a message via Skype™ to Anxious
  Reply With Quote
Old 06-06-2008, 09:57   #5 (permalink)
dawiyo
stuck in the '90s
 
dawiyo's Avatar
 
Join Date: Jun 2008
Location: Baltimore, MD, USA
Posts: 123
thank you kind sir or madam
  Reply With Quote
Old 06-06-2008, 10:00   #6 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
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.
__________________
  Reply With Quote
Old 06-06-2008, 10:02   #7 (permalink)
Anxious
the bee has grey hair
 
Anxious's Avatar
 
Join Date: Jun 2007
Location: Glasgow
Posts: 3,583
Send a message via Skype™ to Anxious
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
  Reply With Quote
Old 06-06-2008, 10:08   #8 (permalink)
dawiyo
stuck in the '90s
 
dawiyo's Avatar
 
Join Date: Jun 2008
Location: Baltimore, MD, USA
Posts: 123
Quote:
Originally Posted by herkalees
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.

What would you suggest?
  Reply With Quote
Old 06-06-2008, 10:36   #9 (permalink)
herkalees
Semantics, yay.
 
herkalees's Avatar
 
Join Date: Nov 2005
Location: Salem, Massachusetts
Posts: 1,410
I'd go for some simple show/hide functionality with a bunch of <div> elements being controlled by JavaScript.
__________________
  Reply With Quote
Old 06-06-2008, 14:01   #10 (permalink)
cherceiny
Registered User
 
Join Date: Jun 2008
Posts: 1
Покупаю трафик и загрузки!

Покупаю трафик и загрузки!

Постоянно покупаю загрузки и трафик
отличные цены, дружелюбный саппорт,
100%ая статистика в реальном времени.

Icq: 1033514 , 480299792
  Reply With Quote
Old 06-06-2008, 14:57   #11 (permalink)
Limbo
This week, mostly.
 
Limbo's Avatar
 
Join Date: Feb 2005
Posts: 8,157
веа is for apple.
__________________
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet