Page 1 of 1

Lightbox

Posted: Wed Nov 03, 2021 2:41 pm
by Humberto
Hi everyone,

Can someone please tell me why can't i use target="_parent" when use a link to display a page in a lightbox?

Thanks.

Re: Lightbox

Posted: Wed Nov 03, 2021 3:25 pm
by Pablo
A lightbox is a JavaScript which opens a popup layer.
In this context, the target property makes no sense. It's only for links that go to a different page.

Re: Lightbox

Posted: Thu Nov 04, 2021 12:49 pm
by Humberto
Hi Pablo,

Thanks for the reply.

I've a page with a InlineFrame. In that InlineFrame i have a list os clients with a info button. That info button displays the client info in a lightbox.
So if a can't say that the lightbox will be displayed on the parent page, the lightbox will be displayed in the inline frame. The problem is that the inlineframe is very small so the lightbox will not appear.

I know all i've to do is to edit the page and replace _self with _paraent and all works fine, but it would be nice to be able to change in webbuilder and not to have to edit manually.

Thanks.

Re: Lightbox

Posted: Thu Nov 04, 2021 1:08 pm
by Pablo
The target=_parent attribute does not have any meaning for a lightbox script.
Each lightbox is different, but most (if not all) lightboxes cannot break out of an inline frame.