PDA

View Full Version : Open the facebox in another frame or location



tomus
08-14-2008, 11:06 PM
1) Script Title: Facebox image and content viewer (v 1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/facebox/index.htm

3) Describe problem: I'm attempting to have the facebox appear in a different frame than where it was created/defined. The following example is the means I used to display an inline div.

<p><a href="#mydiv" rel="facebox">View DIV with id="mydiv" on the page</a></p>

<div id="mydiv" style="display:none">
This is the contents of a hidden DIV on the page, with ID="mydiv" and style set to "display:none" <br /><a href="http://www.dynamicdrive.com">Dynamic Drive</a>
</div>

I've tried using the "target" specifier in the anchor <a target="myframe".... but did not have any success. What I'm really wanting to do is to be able to display the facebox at any location on the entire page. Any help would be appreciated.

ddadmin
08-15-2008, 05:29 AM
Hmm there's no easy way to do this unfortunately. This is very different from getting a link to load in a different frame- frames are basically treated as separate windows in JavaScript, so you're talking about transporting the entire script from one window to another.

tomus
08-27-2008, 11:13 PM
Here's another facebox question. Can you avoid having dropdown lists bleed through the facebox. I've tried using an IFRAME but the close button would not work and when you scrolled, the dropdown lists would show through the facebox.

Thanks