Lightbox within a Lightbox
Permalink
Hello, using Concrete 5.8.5.1 and I have a few places were I use a content block with a link and that link is a Lightbox link.
Example:
https://www.mdius.com/products/mechanical-non-mercury-tip-over-025-a...
In the Area right under the Bread Crumb:
MDI offers Free Shipping on online orders over $150
(Some Restrictions May Apply - Store Policies)
Click the (Some Restrictions May Apply.... )
It is a nice Lightbox, but inside that scroll down a little and you'll see:
...to return form "pdf.gif" here. MDI does not accept used items...
Click "here."
So, that Lightbox opens in the other Lightbox. Is there a way to make a link close the Lightbox and open a new one?
Example:
https://www.mdius.com/products/mechanical-non-mercury-tip-over-025-a...
In the Area right under the Bread Crumb:
MDI offers Free Shipping on online orders over $150
(Some Restrictions May Apply - Store Policies)
Click the (Some Restrictions May Apply.... )
It is a nice Lightbox, but inside that scroll down a little and you'll see:
...to return form "pdf.gif" here. MDI does not accept used items...
Click "here."
So, that Lightbox opens in the other Lightbox. Is there a way to make a link close the Lightbox and open a new one?
You have a good point here.
Then I guess I won't worry about it. There is another place I'd like to have it close it, but not too worried about it right now.
Thank you
Then I guess I won't worry about it. There is another place I'd like to have it close it, but not too worried about it right now.
Thank you
I think your problem will be that the content of both lightboxes uses iframes. There are severe browser security restrictions on a script in a iframe doing anything in the parent of the iframe.
As @mnakalay says, best to leave as-is.
As @mnakalay says, best to leave as-is.
I'm wondering though, why would you want to d that? As it is right now it offers the best flexibility. The popups work well together and by closing the second one I'm back where I left off in the first one.
By closing one when opening the other you would force your users to re-open it if they didn't finish reading. Maybe that's not the best user experience?