473,626 Members | 3,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4718
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.co m> 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.co m> 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*****@xeviou s.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
33781
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? Ideally, I want to be able to change the border thickness, colour, etc. Additionally, does anyone know of some comprehensive examples/tutorial
5
1645
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 each page from unauthorized access. When I open any of the pages in the frameset individually, I am presented with the proper login page as expected, however if I open them thru the frameset page, redirection to my login page does not occur. Any...
10
2119
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, default frameset. The redirect works, but the called, nonexistent URL remains in the browser's address bar. Is there any way to refresh a browser's address in the address bar to that of the site's default, frameset address? I tried using a...
13
2717
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 doesnt have a border tag whereas the html tidy script (http://infohound.net/tidy/tidy.pl) claims everything is ok.. Who is right ? I am asking this because i would like to write clean
5
2265
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 the offending frame? Overview: I have an application in which I am using framesets. When an Unhandled exception occurs I try to handle it
4
1764
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 that gets data from a sql datasource (sort of like a tabstrip). I'm getting pretty comforatable on the asp.net side of things, but I'm lacking in the javascript department. I understand that I need to add javascript to make the frames work...
1
1314
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 row of data, I retreive information from the row of the datagrid and place this information into session variables for the other frame to retrieve. No problem so far. What I want to do is then trigger a update (repost ?) of the data in frame 'B',...
4
1775
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
12661
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 changed is the main content in the page. I understand framesets are, and have been looked down upon for quite some time; quite litterally I don't like them myself. Is it possible to make a div with the contents of that div being a DHTML file? I...
0
8268
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8202
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8707
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8366
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6125
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5575
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2628
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1512
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.