Forum Moderators: phranque

Message Too Old, No Replies

Frames or no frames?

         

Theinc

12:23 pm on Jul 31, 2005 (gmt 0)

10+ Year Member



Is there any reason not to create websites using frames? Is it better to use frames or not use frames?

victor

2:52 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it is an internal application, frames can be a very good solution.

But you want something that that is consistently spiderable by search engines, can be bookmarked by humans, and works with a vast range of browsers and adaptive technologies, avoid frames.

Google for frames suck.Tthe first few results should give you all the background,

Theinc

2:53 pm on Jul 31, 2005 (gmt 0)

10+ Year Member



So in short frames are not worth the trouble?

victor

3:02 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, you've got to really want them and be prepared to put a lot of work in to make them work.

Whether they are right or wrong depends on your circumstances.

Though, it'd be prudent to make the business case to use them before doing so on a site.

Theinc

3:43 pm on Jul 31, 2005 (gmt 0)

10+ Year Member



If they don't work well with search engines then it's probably not worth the time, right?

Pico_Train

4:44 pm on Jul 31, 2005 (gmt 0)

10+ Year Member



For search, no frames for sure. Use SSI or server side includes to achieve the same thing without the problems encountered by search engines with frames.

Cheers!

phantombookman

6:20 pm on Jul 31, 2005 (gmt 0)

10+ Year Member



I backclick whenever I see a site that uses frames I am afraid, instant negative reaction.
That could just be me of course!

victor

6:54 am on Aug 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If they don't work well with search engines then it's probably not worth the time, right?

It depends of what you are trying to achieve. After all, the web started before search engines, so there are a great many sites -- many of them now classic role models -- that were published with no idea of the needs of search engines.

But if you want a visible and usable site, then either learn a lot about how to manage frames, or don't use them.

Or use them in specialised parts of your site where they might make sense for your application and audience.

kaled

11:18 am on Aug 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Frames and search engines can work together provided you use javascript. I use frames to place a navigation bar at the top (or left) of a page.

If javascript is disabled, I fall back to using IFrames - the page looks the same but the navigation bar scrolls off.

My urls look entirely normal and it all works properly on IE, FF and Opera. The only problem I have is that to avoid scrollbar issues, IE prefers to be in quirks mode but this does not cause me great problems.

Of course, if { position:fixed } worked in IE, frames could be discarded entirely. In fact, it is possible to do this using some twisted CSS hacks. Indeed, you can produce spiral frames this way that cannot be achieved by normal means.

Kaled.

txbakers

12:42 pm on Aug 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't like frames anymore.

Theinc

4:01 pm on Aug 1, 2005 (gmt 0)

10+ Year Member



Would you say to stay away from frames, SSI and all things similar or are they OK to use?

victor

5:01 pm on Aug 1, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Frames are client-side visible, and many clients don't like them, can't use them, or get confused by them. "Clients" here means anyone or anything browsing your site -- humans or spiders.

The use of frames has to have considerable payoff to overcome those difficulties. If you've done your cost benefit analysis and frames come out on top, use them. You are likely to be in a tiny minority; but right isn't to do with size.

SSI is server side technology. The client need never know you are using it. They just see the emitted HTML.

SSI and suchlike are a good step towards having a dynamic site. Usually a good step. But again, your own research will put a value to it for your situation.

SSO emitting frames would be as good or bad as frames alone, though.

ControlEngineer

12:56 am on Aug 2, 2005 (gmt 0)

10+ Year Member



I used frames long ago for an organization site with many pages and changes to common elements (nav column, top part, bottom notices, etc.) that were made every few months. I then switched to non-frames. It is just too easy to find other ways to update of common elements on a number of pages.

SSI is a common, probably best, solution. Since their site was hosted by an organization that would not allow server side stuff, I wrote a simple VBA program that would run through the entire site and update pages. (I would guess that some WYSIWYG and HTML editors will provide this automatically).

The only reason I can think of to use frames is if you want part of the window to have its own scroll bars. But I can't think of any reason you would want that. So it seems to me that there is no reason to use frames and some reason to not use them.

kaled

10:18 am on Aug 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The only reason I can think of to use frames is if you want part of the window to have its own scroll bars.

I'm baffled.......
You use frames if you want an area of the screen to be permanently visible - scrollbars are irrelevant unless there is insufficient space to display the required information.

If IE supported { position:fixed } as Firefox does (and Opera does, but badly) there would be no need to use frames. Since W3C thought to include { position:fixed } in CSS, presumably they see that there is a need for fixed elements.

Incidentally, the Plesk Control Panel appears to use frames (I haven't checked the source code). There is definitely a need for fixed elements, and frames are the only way to achieve this in a manner that works on all browsers without having to resort to serious CSS hacks.

Kaled.