first, thanks for the great work on this module and apologies if this question has been answered before or if this is not the right forum for asking it--i did lots of searches before posting and couldn't find anything close.

i'm loading a swf (not a video player, just a simple animation swf) into a lightframe. works like a charm. the swf has some static links. the links load in the lightbox--i want them to load in the lightbox's parent/launcher window. i've tried '_parent' targeting the lightframe-launching link, but the links always load in the lightframe.

this seems like a fairly common scenario, so i'm hoping there's a simple answer that i just missed in my searches. thanks in advance.

using lightbox2-6.x-1.x-dev (having to use dev i was suffering from the documented jquery 1.3x 'all clicks fire lightbox' issue). my link code:
View animation

Comments

hartogsmith’s picture

my link code again:
<a target="_parent" rel="lightframe[|width:800px; height:600px; scrolling: auto;]" href="/library/system/files/ani.swf">View animation</a>

rizz23’s picture

Subscribing... How can i target links included in a lightbox to the parent window or a new window?

stella’s picture

Status: Active » Fixed

you need to set the 'target' attribute to "_parent" on the links within the lightbox - so you need to alter the html of whatever page you're loading in the lightframe.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

AlexisWilke’s picture

Status: Closed (fixed) » Active

I have a link with a target="_parent" and it doesn't work at all. Looking at the code for a lightframe, there is absolutely nothing that takes care of the target attribute. I do not see how that could work if you don't first check the target in your JS code.

There is an example of link I use:

<a class="lightbox-processed" href="/profile/123/term/1" rel="lightframe" target="_parent">89410408</a>

and when I click on it, it all appears in my IFRAME instead of the parent window as specified by the target.

Any idea? I have version 1.11 which was published before Sept. 15, 2010 which is when you said it was fixed (even though hartogsmith showed that he also already had a target attribute in his anchor link and it probably wasn't working for him either.)

Thank you.
Alexis

P.S. I'm using SeaMonkey which makes use of FireFox for HTML handling.