Results 1 to 4 of 4

Thread: Targeting Outside of Iframe???

  1. #1
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Unhappy Targeting Outside of Iframe???

    Hey, I'm sure this probably going to sound completely ridiculous... But I am wondering if it's possible to have a link that's inside of an "Iframe" target the "parent" window? I am making a photo gallery that has links above the Iframe to refresh the Iframe with the corresponding page full of images, but I'm using the lightbox script off of DD and I'm trying to make it open up outside of the Iframe when you click to enlarge the image... Here's a link to a test page so far...

    Photo Gallery
    --------------------------------------------------
    Reviews, Interviews, Tutorials, and STUFF
    --------------------------------------------------
    Home of the SexyBookmarks WordPress plugin

  2. #2
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    I'm having a similar problem. I'm working on a web page and it has 2 or more iFrames on the same page. Is it possible that the link on an iFrame could be loaded in another iFrame?

    For example:

    The iFrame #1 has a link to http://www.yahoo.com, now I want that link to load in iFrame #2 for example.

    Is that possible?

  3. #3
    Join Date
    Nov 2006
    Location
    Pirassununga/SP Brazil
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Yes. That's possible.

    On original page where link is you type on <body>:

    <A href="yourpage.html" target="iframe_name">

    and on <iframe> where will open the "yourpage.html" you type:

    <iframe src="initial_page.html" name="iframe_name" title="iframe_name" id="iframe_name" frameborder="0" width="554" marginwidth="0" marginheight="0" scrolling="no" height="" align="right">&nbsp;</iframe>


    This code will creat a link to yourpage.html but yourpage.html page will open in the frame called "iframe_name"

  4. #4
    Join Date
    Jun 2006
    Location
    Acton Ontario Canada.
    Posts
    677
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    the links in the iframe doc have to include

    target="_top"

    very easy...
    - Ryan "Boxxertrumps" Trumpa
    Come back once it validates: HTML, CSS, JS.

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
  •