Results 1 to 5 of 5

Thread: Dreaded frames...

  1. #1

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    Unhappy Dreaded frames...

    Hey all. I have a web site quiz thing which uses frames.

    However, during the trip through this 'site', a user gets to a page in the middle frame which then links back to an 'outside' page. I want this 'outside' page to appear in place of the frames page, however I can't get this to work correctly.

    _PARENT and _TOP as Targets for that link just make a new window.

    So what I've had to do is make a 'top' page which has

    <FRAMESET ROWS=*,0>
    <FRAME SRC="frames.asp" name=master>
    </FRAMESET>

    (frames.asp) is the 'frames' page which divides into 3 frames.

    So now I can use TARGET='master' in any link in the frames and I get the desired result, however my window shrinks by a small amount every time I go through this cycle. This is because, although I have requested a frame of 0 height, some space is still allocated for that frame.

    Any suggestions???


    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  2. #2
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    method 1:
    Code:
    <html>
    <head>
    <script language="javascript">
    function ShowTop(nHref){
    top.location = nHref;
    }
    </script>
    </head>
    <body>
    <a href="javascript:ShowTop('http://www.vb-world.com')">Make top</a>
    
    hello
    </body>
    </html>

  3. #3

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Unfortunately, I can't use your suggestion Jem, Netscape doesn't like it, and won't load anything without the '0' in the rows tag.
    This solution works for IE though. But I can't have nothing appear in Netscape browsers.

    I shall try the other.

    Thanks all.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  4. #4

    Thread Starter
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205

    da_silvy to the rescue!

    Thanks - your solution works like a charm.

    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  5. #5
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    No probs, I was looking for the _top method for the target thingo, but you said it didn't work so i just did it a different way for you

Posting Permissions

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



Click Here to Expand Forum to Full Width