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
  1. #1
    New Coder
    Join Date
    Oct 2004
    Location
    Sydney
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post Alternative to Frames

    i got this email from a friend today "dude no one uses frames any more except you..."

    i've done sone searching on frames in this site and although everyone is explaining the many pitfalls of using frames - nobody is really making any suggestions to use in their place.

    i want a website that dosent reload the entire page every time i click a button. esentially i want a page with 3 "frames" 1 along the top for the banner and an image that changes on new pages, 1 on the left for the buttons, 1 on the right for the content.

    does anyone have any suggestions...

  • #2
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by babycam
    i want a website that dosent reload the entire page every time i click a button
    Your friend is right.
    You have few options other than a frameset for a site that doesn't do full page refreshing.
    1) iframes synced up with js. No better than frames -- probably worse.
    2) flash -- is it a video game or is it a website? Your choice.[*]
    3) using a hidden iframe and lots of javascript to pipeline the new data from the server and replace the old bits with the new bits. I'm involved in a web-app that does this and I wouldn't wish it upon anyone who doesn't truly need it.

    Bite the bullet.
    Refresh your page

    [*] : Yeah, I'm flash bashing. So sue me
    Last edited by mindlessLemming; 10-25-2004 at 09:35 AM.

    I take no responsibility for the above nonsense.


    Left Justified

  • #3
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Quote Originally Posted by mindlessLemming
    [*] : Yeah, I'm flash bashing. So sue me
    Sure, I will


    Back on-topic, remember JavaScript can be disabled, and that Video Games which are websites only run on annoying++.

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Functional replacement

    The main function of frames was the ability to gather page fragments from different sources, that and the ability to keep certain sections of a page "frozen" (like header and menu) while others (like the main content) feature a scroll bar.

    The first function can best be replaced by Server Side Includes or a similar function found in server side scripting languages; for the second, and iframe could be used for the content section.
    It should be noted that fixed headers and menus have become rather impopular and most of the time aren't very practical, considering the wide range of possibe screen/window sizes.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #5
    Regular Coder
    Join Date
    Jun 2004
    Posts
    130
    Thanks
    0
    Thanked 0 Times in 0 Posts
    why not use divs? you can even make them scrollable they're meant for building pages

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    If you're gonna rebuild your page take a gander at http://www.csszengarden.com/ for a tremendous number of page layouts all of which use exactly the same html code. Try to design your html code like is used there and you can not only step out of the past (frames) but straight into the future and maybe give your "friend" a challenge at the same time .
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #7
    New Coder
    Join Date
    Oct 2004
    Location
    Sydney
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by maghiel
    why not use divs? you can even make them scrollable they're meant for building pages
    Well im new to all this coding business, only on my second site. when i was using <div style=overflow:auto> (might be a bit wrong - just going off memory there) i would get the vertical scroller i wanted. BUT if i as much as bold face the firt word on the top line, i would get a horizontal scroller (YUK). Futhermore if you use cell padding the scroller pads in as well...

  • #8
    Senior Coder chilipie's Avatar
    Join Date
    Jul 2004
    Location
    Shrewsbury, UK Age: 16
    Posts
    1,117
    Thanks
    0
    Thanked 0 Times in 0 Posts
    http://www.beforethedog.com/tutoriali/tut1.htm

    Brilliant tutorial on the use of divs for look-a-like iFrames.

  • #9
    Regular Coder
    Join Date
    Oct 2004
    Posts
    256
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Knowing my luck this is probably going to spark off some controversy, but here goes...

    If you need to use frames to make your pages work, there is something very very wrong with your design.


    Hence web developers don't go out of their way to replace frames, because by and large they don't need to.


    /waits for the wrath


  •  

    Posting Permissions

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