Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9

Thread: Frames help!

  1. #1
    New Coder
    Join Date
    Mar 2011
    Posts
    96
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Frames help!

    Good afternoon;
    I am working on a site that starts off with just a regular html page with navigation buttons along the top. One of the buttons is called "Travels".
    When the user clicks this button it takes him to a frameset pahe that has two sections one for navigation (top to bottom) and the main content that shows videos based on what button in the navigation was selected.
    Everything works great however when the user clicks the home button on the frame set just the one section opens the new page. I want to totally get out of that frameset page and return to the non-frameset page. I can not seem to figure it out?
    I hope I am making sence.
    Any help would be much appreciated.

    Shepard

  • #2
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,451
    Thanks
    17
    Thanked 275 Times in 275 Posts
    Stay away from frames, as far away as possible. You can use divs or other block elements like paragraphs, and hide or un-hide them as needed. Use display: block; display: none; there is code for older IE with visibility: hidden; and visibility: visible; that you can put along side it. Very simple javascript.
    Code:
    obj.style.display = "block";

  • #3
    New Coder
    Join Date
    Mar 2011
    Posts
    96
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by DrDOS View Post
    Stay away from frames, as far away as possible. You can use divs or other block elements like paragraphs, and hide or un-hide them as needed. Use display: block; display: none; there is code for older IE with visibility: hidden; and visibility: visible; that you can put along side it. Very simple javascript.
    Code:
    obj.style.display = "block";
    Thanks for th reply.
    I appreciate your advise but really am dead set on trying a frames site. Is there a way (or a link) that I can add that actually closes the frames page and opens an entie new page without frames. What's happening know is that when I click the Main menu link it opens up in my frameset page which I dont want.
    Thanks

  • #4
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,546
    Thanks
    45
    Thanked 259 Times in 256 Posts
    You can use targets for your link by naming frames. I think target="_parent" should work. But why are you dead set on using frames? Its like saying you're set on using marquees or using rock and chisel. Its an oudated technique ripe with problems (as you're discovering) whereas there are better, cleaner, and more flexible solutions.

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    632
    Thanks
    1
    Thanked 21 Times in 21 Posts
    Sometimes learning something old is useful just because you wish to learn something. We encourage invention, not because we need new inventions, but because we need more inventors.
    Code:
    <a href="???.htm" target="_top" title="out of frames">-page-title-</a>
    Notice the target attribute.

  • Users who have thanked jalarie for this post:

    Will Bontrager (06-18-2012)

  • #6
    Regular Coder Donkey's Avatar
    Join Date
    Sep 2003
    Location
    Blackfield UK
    Posts
    312
    Thanks
    1
    Thanked 36 Times in 36 Posts
    We encourage invention, not because we need new inventions, but because we need more inventors.
    Is it just me or is there a couple of flaws in your logic. i.e.
    1. What will all these inventors do if they don't invent anything?
    2. Can you really call someone an inventor if they don't actually invent anything?


    BTW is this the "Royal we" i.e. you, or are you speaking for all mankind.
    Last edited by Donkey; 06-18-2012 at 03:55 AM. Reason: typo
    " 90% of everything is crud" - Theodore Sturgeon
    Filthy Beast - a 60's Rock Band

  • #7
    Regular Coder
    Join Date
    Jun 2012
    Location
    Near Chicago, USA
    Posts
    123
    Thanks
    7
    Thanked 19 Times in 19 Posts
    Quote Originally Posted by jalarie View Post
    Sometimes learning something old is useful just because you wish to learn something. We encourage invention, not because we need new inventions, but because we need more inventors.
    Yes. If it weren't for inventors and the things they come up with, frames would be in vogue

    Will
    Numerology API for apps - Facebook, iPad, mobile phones. No charge to use API. [info]

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    632
    Thanks
    1
    Thanked 21 Times in 21 Posts
    Quote Originally Posted by Donkey View Post
    BTW is this the "Royal we" i.e. you, or are you speaking for all mankind.
    It's a (near?) quote from someone very famous, but I don't remember who.

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Location
    Flint, Michigan, USA
    Posts
    632
    Thanks
    1
    Thanked 21 Times in 21 Posts
    Quote Originally Posted by jalarie View Post
    It's a (near?) quote from someone very famous, but I don't remember who.
    Found it!
    We have to reinvent the wheel every once in a while, not because we need a lot of wheels; but because we need a lot of inventors. - Bruce Joyce.


  •  

    Posting Permissions

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