Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-06-2006, 01:51 AM   PM User | #1
cvs334
New to the CF scene

 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
cvs334 is an unknown quantity at this point
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
cvs334 is offline   Reply With Quote
Old 12-06-2006, 02:04 AM   PM User | #2
rpgfan3233
Regular Coder

 
Join Date: Mar 2005
Location: D0u$h!t3 k4?
Posts: 512
Thanks: 2
Thanked 5 Times in 5 Posts
rpgfan3233 is an unknown quantity at this point
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
rpgfan3233 is offline   Reply With Quote
Old 12-06-2006, 02:57 AM   PM User | #3
cvs334
New to the CF scene

 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
cvs334 is an unknown quantity at this point
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
cvs334 is offline   Reply With Quote
Old 12-06-2006, 04:31 AM   PM User | #4
vinyl-junkie
$object->toCD-R(LP);


 
vinyl-junkie's Avatar
 
Join Date: Jun 2003
Posts: 3,053
Thanks: 2
Thanked 22 Times in 22 Posts
vinyl-junkie is on a distinguished road
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!
vinyl-junkie is offline   Reply With Quote
Old 12-06-2006, 06:28 AM   PM User | #5
truviet911
New Coder

 
Join Date: Sep 2004
Location: California
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
truviet911 is an unknown quantity at this point
people these days design layout in DIV alot. including me hehe . frames is just simple i think
truviet911 is offline   Reply With Quote
Old 12-06-2006, 12:12 PM   PM User | #6
vinyl-junkie
$object->toCD-R(LP);


 
vinyl-junkie's Avatar
 
Join Date: Jun 2003
Posts: 3,053
Thanks: 2
Thanked 22 Times in 22 Posts
vinyl-junkie is on a distinguished road
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!
vinyl-junkie is offline   Reply With Quote
Old 12-06-2006, 02:43 PM   PM User | #7
nikkiH
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
nikkiH is on a distinguished road
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/
nikkiH is offline   Reply With Quote
Old 12-06-2006, 02:53 PM   PM User | #8
ronaldb66
Senior Coder

 
Join Date: Jun 2002
Location: The Netherlands, Baarn, Ut.
Posts: 4,253
Thanks: 0
Thanked 0 Times in 0 Posts
ronaldb66 is an unknown quantity at this point
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
ronaldb66 is offline   Reply With Quote
Old 12-06-2006, 03:37 PM   PM User | #9
timgolding
Senior Coder

 
timgolding's Avatar
 
Join Date: Aug 2006
Location: Southampton
Posts: 1,460
Thanks: 89
Thanked 110 Times in 109 Posts
timgolding is on a distinguished road
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.
timgolding is offline   Reply With Quote
Old 12-06-2006, 04:48 PM   PM User | #10
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
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
david_kw is offline   Reply With Quote
Old 12-06-2006, 10:52 PM   PM User | #11
cvs334
New to the CF scene

 
Join Date: Dec 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
cvs334 is an unknown quantity at this point
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
cvs334 is offline   Reply With Quote
Old 12-07-2006, 01:47 AM   PM User | #12
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
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
oracleguy is offline   Reply With Quote
Old 12-07-2006, 02:10 AM   PM User | #13
vinyl-junkie
$object->toCD-R(LP);


 
vinyl-junkie's Avatar
 
Join Date: Jun 2003
Posts: 3,053
Thanks: 2
Thanked 22 Times in 22 Posts
vinyl-junkie is on a distinguished road
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!
vinyl-junkie is offline   Reply With Quote
Old 12-07-2006, 07:15 AM   PM User | #14
david_kw
Senior Coder

 
Join Date: Nov 2006
Posts: 1,000
Thanks: 0
Thanked 0 Times in 0 Posts
david_kw will become famous soon enough
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
david_kw is offline   Reply With Quote
Old 12-08-2006, 05:22 AM   PM User | #15
vinyl-junkie
$object->toCD-R(LP);


 
vinyl-junkie's Avatar
 
Join Date: Jun 2003
Posts: 3,053
Thanks: 2
Thanked 22 Times in 22 Posts
vinyl-junkie is on a distinguished road
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!
vinyl-junkie is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:57 AM.


Advertisement
Log in to turn off these ads.