Click to See Complete Forum and Search --> : Need Help With Validation Of Frames Page


Launchnet
06-04-2006, 08:53 PM
I need help with the following code to make it validate. This is the “Frames Page” which was done with Frontpage. Everything works just as I want it to, but I would like it to be validated if at all possible, which I am sure it can be. I’m simply not A good enough coder to do it.

When I open my site: www.openoursite.com the left menu page has been validated. The right page has not been validated yet, but I want to wait on this page until the “Frames Page” validates. I only mention this so that if anyone looks at the “Home Page” code they will understand where I am coming from.

Many…many pages have been validated, but I still have a good number to go. I have not updated my validated pages to the site yet.

Thanks in advance for the help.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>
<title>OpenOurSite</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<frameset cols="141,*">
<frame name="contents" target="main" src="mainmenulist.htm" scrolling="no">
<frame name="main" src="mainmenubody.htm" target="main">

<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>

</html>


Matt Gentry

Kevey
06-04-2006, 09:36 PM
If you start out using the proper doctype for your site you'll only have one error on the validator, which is failing for using the 'target' attribute. Target is deprecated I believe, but there may be a way around it.

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


Try this doctype:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">

Launchnet
06-04-2006, 09:55 PM
Kevey, see the below code. It worked and I only get the 1 error.

How do I use: http://www.w3.org/TR/REC-html40/present/frames.html#h-16.3.2 to get rid of this one error? Thanks for replying so soon.



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">

<head>
<title>OpenOurSite</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
</head>

<frameset cols="141,*">
<frame name="contents" target="main" src="mainmenulist.htm" scrolling="no">
<frame name="main" src="mainmenubody.htm" target="main">

<noframes>
<body>

<p>This page uses frames, but your browser doesn't support them.</p>

</body>
</noframes>
</frameset>

</html>

Kevey
06-04-2006, 10:16 PM
The doc was just for your reference to see why I said you should change your dtd. I think if you use the frameset dtd it will ding you on target, and if you use the transitional dtd it will ding you on the frameset element.

I don't know if there is a way out short of ditching the frames and going to a (x)html/css set-up.

I will stop short of saying it cannot be done... l always end up being wrong when I say that :)

Launchnet
06-04-2006, 10:37 PM
Kevey . . . I just was told from someone else that the frame=target should not go on the frame page but in the links. I need to know how to do this. Can you help if you know. If I find out I will post it here.

Thanks
Matt

Launchnet
06-04-2006, 11:47 PM
Well, I removed the target="main" from the code and revalidated and it worked. But, when I went to save the code in FrontPage, the target="main" was automatically added back in.

Any ideas how I can get at the code outside of Front Page.

Launchnet
06-04-2006, 11:56 PM
Well, I found where to see the code to the frames page and I deleted the target="main" and everything is fine. Thanks, Matt