Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Apr 2005
    Location
    Hatfield, England
    Posts
    855
    Member #
    9790
    Is there a way of specifying that links pressed within the iframe should be taken to the parent page.

    I have a login box, the script works fine, the problem is that it conflicts with my forum so i need to house it in an external iframe. The problem with this is that links like logout and messages take you to a link within the frame instead of outside it. Would i need javascript to make this happen or is there some sort of built in html voodoo that can make this happen?

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,694
    Member #
    5580
    Liked
    717 times
    This explains it pretty good:
    http://www.quirksmode.org/js/frameintro.html

    When you get down to the part called "Doing something",
    that shows the references you need to get back to the parent page.

    iframes have a purpose, especially when you want a portion of your
    page to change without refreshing the whole page. But if refreshing
    is not a problem, you could use PHP "include" inside of a CSS <div>
    instead of using an <iframe>. That would solve all of your parent page
    problems.

    I guess I'm thinking of the way login boxes and special messages appear
    on this forum. I would have to guess they're using PHP includes and not
    using any <iframes>.



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:42 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com