Results 1 to 18 of 18

Thread: Using Frames On A Web Page

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Using Frames On A Web Page

    In another thread in this section a member asked about frames an "normal" HTML pages. This occasioned numerous remarks about the inadvisibility of using frames and the entire thing evolved in more of a frames debate than an answer to the members question. In so far as we were dangerously close to hijacking the poor guy's question, I thought I'd start a new thread specifically dedicated to this subject.

    Althought I've never been involved in putting up an actual internet web site, I have been involved in putting up in-house, company based, intranet sites and have used frames on pages for this intranet site.

    I see nothing wrong with using frames, but admittedly, I'm not the most accomplished web developer you will ever meet so my question to all of you is, from a technological standpoint, what is the down side of frames? I've read a bunch of statements, but so far no one has given me solid development reasons for not using them.

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Using Frames On A Web Page

    It is ugly. It breakes easy in different browsers. It is more or less impossible to set bookmarks to the page you want, because you suddenly have 2-3-4-5-6-7 pages on your screen.

    But most importent of all, there is no use for it.


    PS: I thought frames where more or less out of the Web standard. Is it in the standard anymore at all?

  3. #3
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Using Frames On A Web Page

    - Ohhh and I forgot. Seach engines (Google bots and so on) does not read pages with frames.

    - They can easily be confusing if you suddenly have more then one scroolbar. Often you get stuck with 2-4-6-8 scroolbars on one page.

    - And you have to watch your links more carefully, if not all your formating will be destroyed when a window opens in the wrong frame.

  4. #4

    Thread Starter
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Using Frames On A Web Page

    Ok, now we are getting some place. I can understand the search engine reasons as they would apply to an actual internet site, and having a window open in the wrong frame even on a intranet site.

    You mentioned web standards. Are you referring to industry wide web page development standards? If so, are these published any where?

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Using Frames On A Web Page

    Well I guess w3c.org is what you are looking for. But I can find frames there:

    http://www.w3.org/TR/REC-html40/present/frames.html


    So I guess it must just have been my teacher that was on LSD a couple of years ago. He didn't even know how to change the clock in Windows, so you can understand what way he went in life....Linux->Moxilla->Emacs....yeeee....never had so much propaganda in a class before in my whole life...



    ØØ

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Using Frames On A Web Page

    No frames are still a w3c standard, IINM.

    A detailed article:

    Why are frames so evil?

    Frames are evil. Frames supposedly make the webdesigners job easier, but they cause an increased maintenance overhead. Frames supposedly creates a better interface to a website for the end-user, but they cause severe usability problems.

    Its common to see frames abused by newbies in implementing a left-hand menu and top banner layout with the mistaken belief its easier to maintain and makes downloading quicker. There are numerous problems this implementation raises typically related to the paradox it creates.

    To make-up for the usability deficiencies, many framed websites use some client-side techniques which cause further maintenance nightmares. There is a definite usability versus maintenance trade-off with frames, which make it a difficult technology to manage well. The alternatives available have none of these drawbacks, thus frames are a sub-optimal, and typically backward solution.

    Most of this "usability"-hacking of framed websites results in a complete dependancy on Javascript - another evil. Considering the on-going problems related to Windows lax security model (in the OS, Outlook and Internet Explorer) and the exponential growth of scripted worms and viruses (Melissa, Love Bug, Kornikova, SirCam, Code Red, Code Red II, Code Blue, Nimda), this convinces a greater number of surfers switching off Javascript entirely, which in turn causes a framed and scripted site to die a rather horrible death in the browser.

    The perceived benefits of frames are:

    * Quicker to download, since the menu and banner don't have to be reloaded each time.
    * Easier to maintain because the content is separate from the layout and navigation.
    * More usable since the menu is always visible on screen

    The Web Paradox of Frames

    The web was built as a network of addressable resources (typically of information) where each resource can be identified by a unique URL. Frames breaks this architecture because now many resources are grouped together under one URL (the frameset URL), but only one resource can be shown (typically the default page defined in the frameset).
    Bookmarking

    When bookmarking a page, visitors expect to bookmark the exact page of information, but the frameset gets bookmarked instead so when users follow this bookmark they then have to hunt for the relevant page every time. This is the drawback of breaking the Web guideline of a one-to-one mapping between URLs and resources.

    "Also, you're right. It is annoying when you try to bookmark and its always the original frameset page. I got around this by having each section of site being its own frameset, so you can bookmark each section and go back to it." - the author here now needs to create a frameset for every potential combination of pages, typically one frameset per page of content. There goes both the quicker to download advantage and the easier to maintain advantage.
    Search engines

    Search engines have problems with framed websites because of the frames paradox. This results in unframed pages being indexed and linked to, so typically the user sees the first page without the frameset, and typically without navigation (known as blackhole pages). By adding navigation links to the content, the developer has lost the advantage of separating content from presentation and navigation.

    "You can get around search engine problems by creating a doorway page full of your keywords, and then redirecting to the frameset" - Going from the frying pan into the fire, this technique pushes all search engine traffic to doorway pages, effectively duplicating the content. The visitor is then expected to manually surf through the frameset finding what they were supposed to get to from the search engine. Not a good visitor experience plus the overhead of duplicating maintenance. If you are going to create doorway pages, then it makes a lot of sense to put the actual content there and forget about the frames entirely.

    "You can redirect unframed pages to pages within frames using Javascript" - Of course, now usability and accessibiliy is being forced entirely into a reliance on Javascript.
    Content and Presentation Separation

    The issue of framed websites are easier to maintain is ludicrous, since to keep up with non-framed sites the developer will have to duplicate the menu (something frames was supposed to prevent), then creating framesets for every combination of content/banner/navigation so the pages are bookmarkable (thus losing out on the maintainability argument). Since the reason for using frames in this instance was to only have one copy of the navigation bar. You'll need to have another copy for the <noframes> tag in every frameset - else the website will be up there with the 100,000+ other people under "This site uses frames" keyword search.
    Printing

    Frames break the standard browser print buttons. So what gets printed is typically not the page the user wants printed, because of the seemingly random ways which browsers select which frame to send to the printer. It typically prints the frame that has the focus, but without frame borders (which are typically removed by newbie frames authors), the visual cues of the selected page are hidden, thus affecting usability of the website.
    Usability

    The appearance of multiple pairs of scrollbars affects usability, since users are essentially confused as to which scrollbars to use. Hiding these scrollbars has the effect of hiding all content that doesn't fit into the frame, thus seriously impacts users finding their way around a website or finding the content they wanted.
    Download times

    If you "need" frames to cut down the load time you need to re-think how you're presenting the content. Images, style-sheets and Javascript should be cached.
    Linking and copyright

    Framing third-party information into another web page raises issues of copyright infringement (derivative works), passing off, defamation, and trademark infringement -- BitLaw: Linking
    The alternatives

    SSI, CGI, PHP, ASP do a far superior job of including one menu into all content pages and don't annoy the site visitor. It all comes down to usability for the visitor and convenience for the site developer. Using frames involves a trade-off of at least one of these factors. Where these server-side tools are not available, the web developer can always fall-back to the html-preprocessor, which is a "cheap man's SSI".

    When designing a website, the primary rule of development is "Only Trust the Server". The website developer has the choice, thus control, over the server where the website will be kept. So the developer should always trust this environment to deliver the content as required.

    From the visitor's point of view frames degrade their experience, they make it difficult to find what they are looking for, and when the visitor eventually finds it, they can't bookmark, or print successfully. From the web developer's point of view, frames are supposedly easier to maintain - but looking at the hacks above to get around search engine problems and bookmarking problems, the effort required to maintain the website looks to be almost double a non-framed website (or four times the effort if there is a non-framed version).

    There are, however, good uses for frames. But as a cheap replacement for server side tools and html-preprocessors, they are inadequate and lacking. The type of applications that frames are adequately capable of handling are those applications that don't require bookmarking, don't require search-engine indexing (and positively discourage it), and don't require the ability to be accessible to the World Wide Web. These typically are work-flow based applications that are created for a specific purpose, and not for the general Internet population.

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Using Frames On A Web Page

    Even for the Intranet applications I work on, I won't use frames. Not even for the simplest of apps. It might be a little more on the efforts-side, but in the long run it's less of a NIGHTMARE.

  8. #8

    Thread Starter
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Using Frames On A Web Page

    The type of applications that frames are adequately capable of handling are those applications that don't require bookmarking, don't require search-engine indexing (and positively discourage it), and don't require the ability to be accessible to the World Wide Web. These typically are work-flow based applications that are created for a specific purpose, and not for the general Internet population.
    An these are precisely the type of things that I do work on when I work on a web page.
    Its common to see frames abused by newbies in implementing a left-hand menu and top banner layout with the mistaken belief its easier to maintain and makes downloading quicker. There are numerous problems this implementation raises typically related to the paradox it creates.
    This is me...


    However, in what I hope will not be a futile attempt to regain my 'coolness' which mendhak clearly believes I have lost, I will curtail my use of this evil feature.

  9. #9

    Thread Starter
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Using Frames On A Web Page

    mendhak: Can you give me a link to that article that you posted?

    I can copy 'n paste it, but there are a couple of folks that I would like to show that to, and if I can give them a link it would taken more seriously than me just popping it into an email.

  10. #10
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Using Frames On A Web Page

    Google is you friend...

    http://www.html-faq.com/htmlframes/?framesareev

    Guess it is posted more then one place thouhg...

  11. #11

    Thread Starter
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Using Frames On A Web Page

    Quote Originally Posted by NoteMe
    Google is you friend...
    How many times have I said this to other people? LOL

  12. #12
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Using Frames On A Web Page

    I know you have said it, so I couldn't resist. Just had to try google...

  13. #13

    Thread Starter
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Using Frames On A Web Page

    I forwarded the link to the "Frames Are Evil" page to a couple of people, and their reaction was much the same as mine, i.e., "I didn't know that"

    About 6 weeks ago I took a course in XML. Like many programming courses, we started out with a shell web page that, through the various lessons, we built into a real live active web page. The basis for my surprise over the reaction to using frames stemmed from the fact that the shell web page we started out with in my class used a left-hand menu and top banner layout frame set.

    Did I mention this was six weeks ago, as in May 2005, in a programming class?

    Maybe I had the same instructor that NoteMe had. LOL

  14. #14
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Using Frames On A Web Page

    Did you use Frontpage too....

  15. #15

    Thread Starter
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Using Frames On A Web Page

    Quote Originally Posted by NoteMe
    Did you use Frontpage too....
    *Supresses urge to make obscene jesture*

    Actually no, it wasn't that sophisticated a class. We used Notepad.

  16. #16
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Using Frames On A Web Page

    Good, well then the only thing that was wrong with your class was the frames. Now download Firefox, and we all can be friends again.

  17. #17

    Thread Starter
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Using Frames On A Web Page

    Quote Originally Posted by NoteMe
    Good, well then the only thing that was wrong with your class was the frames. Now download Firefox, and we all can be friends again.
    I'm a convert. Based on what you and mendhak have said and what I have read, from this day forward, Hack will only use Frames on VB Forms.

  18. #18
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Using Frames On A Web Page

    Quote Originally Posted by Hack
    from this day forward, Hack will only use Frames on VB Forms.

    Congratulations and welcome to a better future, with us too

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