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 5 of 5
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts

    menu appear like frames

    is there anyway I can make my left menu on my page appear like a frame but not be an actual frame.
    I'd like it that each time i click on the menu I don't need to reload the menu but the rest of the page.

  • #2
    Regular Coder
    Join Date
    May 2007
    Location
    UK
    Posts
    180
    Thanks
    0
    Thanked 18 Times in 18 Posts
    Use an IFRAME. See http://www.w3schools.com/tags/tryit....tryhtml_iframe for an example.

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,441
    Thanks
    15
    Thanked 0 Times in 0 Posts
    yes i know of iframes but then how can I make each link just open in the rest of the document? would i have to use 2 iframes with the target?

    anyway without frames or iframes?

  • #4
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by esthera View Post
    anyway without frames or iframes?
    Basically, use position: fixed together with overflow: auto.

    IE6 does not support position: fixed, so you'll need some trickery to get it working in that browser: 'position:fixed' in Internet Explorer

  • #5
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,479
    Thanks
    6
    Thanked 981 Times in 954 Posts
    Quote Originally Posted by esthera View Post
    I'd like it that each time i click on the menu I don't need to reload the menu but the rest of the page.
    If you really want this without any kind of frame you would need AJAX. Or, to explain it more simple: You would use JavaScript to make a http request only for the content section.

    An easier implementation would be if you just put your entire site in one HTML document and give each section that is supposed to represent a page its own ID and then you use JavaScript to hide the other pages when one page is visible. And once you click on a link (internal link that would usually make the page jump to the respective section) you make that section visible and hide the former one. I think this website is built like that.
    However, thatís only suitable for smaller websites with not too much content.


  •  

    Posting Permissions

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