Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML and Framespacing

Status
Not open for further replies.

CSUKNic

Technical User
Feb 3, 2002
62
GB
Hi there,

I am currently converting a website from html to xhtml for compatibility etc. Unfortunately, as the site is almost entirely frame based I have hit a snag. When I try to validate the XHTML page is tells me that framespacing, frameborder and border are not correct attributes. Call me odd but thats bloody stupid....

Does any bright spark out there have any ideas how I can get the same effect of zero border and zero spacing without becoming incomplient!! I know its possible to resolve the border issue with CSS, although I don't know how!, but I still cannot seem to find a solution to the framespacing issue.

Thanks In advance.

Nic
TONICweb UK
 
>> Call me odd

OK. You're odd ;o)

It's not stupid in the least - I went through a long period of thinking the same about the missing "target" attribute in the strict DTDs... Until I realised all the reasoning behind the moves.

Anyway - try replacing the framespacing attribute in your frameset tag:

Code:
<frameset framespacing="0">

with this:

Code:
<frameset onload="this.setAttribute('framespacing', '0');">

That should pass compliance, I believe.

Hope this helps,
Dan
 
Dan,

Thanks for the post, only I can't make it work!

I have included the source code for the page, so maybe you can see what I've done wrong. It will pass w3c, but it still isn't framespacing at 0!

Thanks.

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="generator" content="TonicWeb"/>
<title>Rookery Manor Bridal</title>
<script language="JavaScript1.2" type="text/javascript">
<!--if (parent.location.href!=window.location.href)parent.location.href=window.location.href;-->
</script>
</head>
<frameset onload="this.setAttribute('framespacing','0');" cols="190,*">
<frameset rows="60,*">
<frame src="rmblogo.html" id="top_left_logo" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="menu_module.html" id="menu_module" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="always_blank.html" id="blank_baseline" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
</frameset>

<frameset onload="this.setAttribute('framespacing', '0');" rows="10,*,30,70">
<frameset cols="70,30,*">
<frame src="blank_namespace.html" id="blank_frame" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="vertical_tip.html" id="vertical_tip" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="blank_abovebody.html" id="blank_body" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
</frameset>
<frameset onload="this.setAttribute('framespacing', '0');" cols="70,30,*">
<frame src="gown_name_gen.html" id="gown_name" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="vertical_mid.html" id="vertical_mid" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="body_gen.html" id="body" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
</frameset>
<frameset onload="this.setAttribute('framespacing', '0');" cols="70,30,*,10">
<frame src="horizontal_left.html" id="horizontal_left" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="cross.html" id="middle_cross" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="horizontal_mid.html" id="horizontal_right" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="horizontal_tip.html" id="horizontal_tip" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
</frameset>
<frameset cols="70,30,*">
<frame src="blank_left.html" id="blank_left" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="vertical_lower.html" id="vertical_lower" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
<frame src="designer_name_gen.html" id="designer_name" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
</frameset>
<frameset cols="*">
<frame src="always_blankb.html" id="blank_mainbaseline" frameborder="0" framespacing="0" border="0" scrolling="no" noresize="noresize"/>
</frameset>
</frameset>
<noframes>

<body>
</body>

</noframes>
</frameset>

</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top