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.
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Why are FRAMES so Uncommon??

    I have been trying to come up with a "design" for my site ... looking at other designs they all seem to follow the TABLE with internals getting a portion.

    Why do people not do this in FRAMES?? It would be faster ... or does this help control menus??

    chuck

  • #2
    Regular Coder
    Join Date
    Mar 2005
    Location
    D0u$h!t3 k4?
    Posts
    512
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Frames are a source of several problems. One that is quite common is that it "breaks the browser's Back button". Some users expect the Back button to take them to the previous site they were at. Instead, it takes the most recently used frame back. For example, if a user goes to your site via a search engine and looks through a couple of pages, that user might think the Back button would take them back to their search results (it makes sense, doesn't it?). Instead, it takes the most recently used frame back one page in the browser history. Accessibility and usability are the issues here, and some countries actually have accessibility requirements to meet. Tables are a pain and they take a long time to load, but they do get the job done better from a usability point of view. Tables are actually considered a bad way to go these days. Frames = worst. Tables = worse. Iframes = bad. Cascading Style Sheets + semantic markup + accessible design + usable design + etc. = good, better and best.
    PHP Code:
    $hello file_get_contents('hello.txt'); echo $hello
    hello

  • #3
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    maybe I are not so bright ... as with OOD i just never quite got it ... anyway I am trying to make a flexable site .. with a header ... and menu bar on the left and some jpgs with links on the right and the middle is the "active area"

    I want to split the menu bar into search entire db, subject specific links and some scroll bars. Again I can visualize this ... just cannot see how to do it outside FRAMES or TABLES ... and FRAMES give me more flexability as far as I can see.

    BTW the output of a shopping cart goes into the active area ..

    now ... how to do this cleanly ... i have implimented CCS for text and background ... where can I go to read up on this?? ... ww3??

    chuck

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,087
    Thanks
    2
    Thanked 23 Times in 23 Posts
    w3schools will teach you just about everything you need to know.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #5
    New Coder
    Join Date
    Sep 2004
    Location
    California
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    people these days design layout in DIV alot. including me hehe . frames is just simple i think

  • #6
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,087
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Doing a little Googling, I found this page, which makes a case for using frames, and this page, which makes a case for not using them. Interesting reading. Personally, I don't see that frames offer anything that I can't do with some well placed div's.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #7
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    My biggest reasons against using frames for an internet site:

    They break bookmarking/favorites.
    Search engine result pages often bring your user to one frame and don't load the whole frameset.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

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

    Still not

    None of the points made in favour of frames are very compelling, though ("Frames create an advertisment that is always present" would be another point not to use them!), and the points made against them omit search-unfriendliness and "breaking the frameset" by linking directly to inner documents.

    Edit:
    NikkiH, you beat me to the punch! I gotta learn to type faster...


    The only areas where frames really offer some benefit (reusing common areas like headers and navigation, and persistent navigation menus) can be mimicked by either server side or client side scripting.

    Another useful source for some introductory tutorials would be HTML Dog.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #9
    Senior Coder timgolding's Avatar
    Join Date
    Aug 2006
    Location
    Southampton
    Posts
    1,519
    Thanks
    114
    Thanked 110 Times in 109 Posts
    Frames can be blocked by some security settings. Adaware and phishing attacks can use inline frames. Frames are for porting websites inside other websites. thats all!!
    You can not say you know how to do something, until you can teach it to someone else.

  • #10
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I agree. Frames are great for putting one website on another. I've used them when I have a webpage app that I want to put on another page. So far it has worked great.

    At this point I can't imagine using them for web design though. CSS (for all the pain in cross-browser design) is much more flexible.

    david_kw

  • #11
    New to the CF scene
    Join Date
    Dec 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Agree on Frames problems

    I made a mock up of a frames page to work with my design. It ended up being 14 frames ... it's does exactly what i want is a little slow to load initially with the Flash header, quickly otherwise ... but it does exactly what i want ... I don't know which direction would be best here ... maybe just for simplicity get the site out in frames ... then build the <no frames> side with "proper" use of <DIV>'s and such.

    thanks for all the input.
    chuck

  • #12
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    If you do try out using CSS for layouts, remember to use semantic HTML/XHTML and not go div crazy.

    Another huge benefit of CSS based layout is that you can re-design the site just by changing the stylesheet (assuming you did a good job of writing the XHTML). See http://www.csszengarden.com/
    OracleGuy

  • #13
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,087
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Quote Originally Posted by david_kw View Post
    Frames are great for putting one website on another.
    But I don't want my web pages embedded in someone else's site like that. I have included a javascript with the following statements on all my pages that stops you from doing that (provided that javascript is enabled):

    Code:
    if (window!=window.top)
    top.location.href=location.href;
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #14
    Senior Coder
    Join Date
    Nov 2006
    Posts
    1,000
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can understand why you might not want your webpage embedded in someone elses. In my case it is my own that I want in another page. It isn't a layout issue. It's a functionality issue. The webpage was intended to be embedded.

    Imagine having a calendar webpage. You could then embed that calendar in other webpages by using iframes without having to worry about how the page it is embedded in works. The framed page can have it's own css file and layout and look.

    I'm not aware of how to do that without frames at this point.

    david_kw

  • #15
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,087
    Thanks
    2
    Thanked 23 Times in 23 Posts
    I would hardly call myself an expert in this area. However, I've never found anything you could put in an iframe that was better or easier than using CSS to style it. Anyway, you can have more than one stylesheet on a web page, so your calendar could have its own style and layout from a different stylesheet, too.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  
    Page 1 of 2 12 LastLast

    Posting Permissions

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