Results 1 to 3 of 3

Thread: Open the facebox in another frame or location

  1. #1
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Open the facebox in another frame or location

    1) Script Title: Facebox image and content viewer (v 1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ebox/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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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.
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    tomus (08-18-2008)

  4. #3
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •