473,383 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Valid framesets

I have been trying to validate a frameset document with either the HTML 4.01
or XHTML Transitional DOCTYPE.

But I am finding that various <frameset> attributes ( framespacing="0",
border="0", frameborder="0") are not valid, presumably because they are IE
proprietary.

Is there a valid way to do these, particulary to get no borders, or does
one just ignore the validation, since IE is so predominant?

Thanks for your help, CMA


Jul 20 '05 #1
9 4705
Quoth the raven named CMAR:
I have been trying to validate a frameset document with either the HTML 4.01
or XHTML Transitional DOCTYPE.

But I am finding that various <frameset> attributes ( framespacing="0",
border="0", frameborder="0") are not valid, presumably because they are IE
proprietary.

Is there a valid way to do these, particulary to get no borders, or does
one just ignore the validation, since IE is so predominant?


Use a frameset DOCTYPE.
http://www.w3.org/QA/2002/04/valid-dtd-list.html

Or... please explain why you need frames at all?

--
-bts
-This space intentionally left blank.
Jul 20 '05 #2
"CMAR" <cm***@yahoo.com> wrote:
I have been trying to validate a frameset document with either the HTML 4.01
or XHTML Transitional DOCTYPE.
Not possible. You should be using the Frameset doctype.
But I am finding that various <frameset> attributes ( framespacing="0",
border="0", frameborder="0") are not valid, presumably because they are IE
proprietary.
framespacing is IE proprietary. border and frameborder are Netscape
proprietary.

At least originally (IE3 and NN2 era). Now various browsers support
various different combinations.
Is there a valid way to do these, particulary to get no borders, or does
one just ignore the validation, since IE is so predominant?


The valid way is to specify frameborder="0" on the frame (not
frameset) element. This will validate but won't work in the majority
of browsers.

So you have serveral options:

1. Don't use frames.
2. Use frames but allow the default border to exist.
3. Use frames, specify frameborder="0" on the frames, and accept that
many browsers will display the border anyway.
4. Use frames, use invalid code to suppress the border.
5. Write your own frameset DTD, validate against that.

Number 1 is the preferred option. The problems with frames really
outweigh the varying issues with optiona 2 - 5 so there isn't really
much to choose between them.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #3
CMAR wrote:
I have been trying to validate a frameset document
Oh. Dear.

http://dorward.me.uk/www/frames/
with either the HTML 4.01 or XHTML Transitional DOCTYPE.
Try the Frameset DTD instead.

http://www.w3.org/QA/2002/04/valid-dtd-list.html
But I am finding that various <frameset> attributes ( framespacing="0",
border="0", frameborder="0") are not valid, presumably because they are IE
proprietary.
Yes
Is there a valid way to do these, particulary to get no borders, or
No, not that works in browsers anyway
does one just ignore the validation, since IE is so predominant?


No, generally one either lives with borders or doesn't use frames in the
first place. The latter usually.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #4
"CMAR" <cm***@yahoo.com> wrote:
I have been trying to validate a frameset document with either the
HTML 4.01 or XHTML Transitional DOCTYPE.
Impossible. You need to use a Frameset DTD.
But I am finding that various <frameset> attributes (
framespacing="0", border="0", frameborder="0") are not valid,
presumably because they are IE proprietary.
The frameset element itself isn't valid except by a Frameset DTD.
Is there a valid way to do these, particulary to get no borders,
or does
one just ignore the validation, since IE is so predominant?


As the FAQ says, either you use valid markup, or you accept the borders
(which are _good_ since they reduce the harm caused by frames, making the
situation clearer to users).

Oh, and stop using frames - this will save you from this minor headache,
and users from frustration.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #5
CMAR wrote:
I have been trying to validate a frameset document with either the HTML
4.01 or XHTML Transitional DOCTYPE.

But I am finding that various <frameset> attributes ( framespacing="0",
border="0", frameborder="0") are not valid, presumably because they are IE
proprietary.
Framesets are obsolete. XHTML 1.1 does not have them, thus it is a really
bad idea to make new documents that depend on them.
Is there a valid way to do these, particulary to get no borders, or
does
one just ignore the validation, since IE is so predominant?


Definitely not the latter. Technically, invalid or badly-formed XHTML is not
supposed to render *at all*.

--
Shawn K. Quinn
Jul 20 '05 #6
"Shawn K. Quinn" <sk*****@xevious.kicks-ass.net> wrote:
Technically, invalid or badly-formed XHTML is not
supposed to render *at all*.


Nonsense, there is only a requirement to throw a parser error when
encountering malformed html (not invalid), and only if the xhtml is
served as xhtml.

--
Spartanicus
Jul 20 '05 #7
Thanks to the extremely useful replies from Steve, David and the others.

I can't think of an alternative to frames to achieve the effect I need: a
left-hand fixed menu, while the main body on the right scrolls down.

I can't figure out how to use tables to do it.

And IE does not support the CSS {position: fixed}, so I regretfully am
stuck with #4.

Thanks, Steve, for making so clear the options available.

Cheers, CMA
Jul 20 '05 #8
David,
I really appreciated your innovative ideas for dealing with the lack of
CSS {position:fixed} support in IE.
Since there really is no other viable solution to this problem, I was
considering trying to implement your solution for IE >= 5.0
Complete cruft-free demos:
1.. fixed vertical bar for IE >= 5
Two questions:
Have you actually implemented this online?
If so, what response have you gotten from various users?

Thanks in advance, CMA
Jul 20 '05 #9
CMAR wrote:
I really appreciated your innovative ideas for dealing with the lack of
CSS {position:fixed} support in IE.
They aren't my ideas - thats why the domain changes when you follow the
link.
Have you actually implemented this online?


No, I prefer navbars to move with the page content - users expect it.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: x | last post by:
Greetings everyone: I am trying to get CSS to work with a framed web page, but I cannot. Does anyone know the syntax required in a CSS specification to specify attributes of the frames? ...
5
by: Martin Franklin | last post by:
I have a simple 2 page frameset that I am trying to protect using asp. I've included the following code listed below at the top of each page including the frameset page in an attempt to protect...
10
by: David Shorthouse | last post by:
Hey folks, I have my entire ASP-driven site in a one-frame frameset to preserve a static URL in a browser's address bar. I also have a customized 404 page to redirect a visitor to the top,...
13
by: Arie Mijnlieff | last post by:
Hi ! I have an html file (http://www.kpc.nl/home.html) which i send to the w3 validator as well as to a an online HTML tidy script. The w3 validator (validator.w3.org) claims the frameset tag...
5
by: terry | last post by:
Hi, Question: When using Framesets and Server.Transfer in the Application_Error event handler is there a mechanism to get the error page to display in the total view of the browser not just in...
4
by: Pete | last post by:
Hello- I am have a real trying time finding information on this subject. I would like to create a web page that utilizes framesets (top & bottom) and a navigation control I created from a datalist...
1
by: JAW | last post by:
I have a frameset that contains frames (top and bottom). In the bottopm frame I have a datagrid, with a command button on the first column of the grid. When I click on the button for the appropiate...
4
by: lashnjo | last post by:
hello, is it possible to click on one frameset, (ex. an image) and then for it to load a new frame in two different framesets and a new one in itself
8
by: geekifyer | last post by:
So I was wondering, what possible replacements are there for the frameset? Because I just want to have my menu and article column be static and not have to be reloaded again, all I really want to be...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.