...

View Full Version : Coding proplem



metmmsc
10-08-2007, 03:13 AM
I use Expression Web as my web editing program. I use forms and I'm using this coding for my index page
--------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled 1</title>
</head>

<frameset rows="168,*">
<frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target=" main">
<frame name="main" scrolling="auto" src="welcome.htm" noresize="noresize" title="Marine Mammal Stranding Center" frameborder="0" marginheight="0" marginwidth="0" target="_self">
<noframes>


<p>This page uses frames, but your browser will not support them.</p>


</noframes>
</frameset>

</html>
------------------------------------------------------------------

According to Expression webs, target cannot be used in a frame tag. Everything in that coding is right except for "target="main" and target="self" and I should fine another way to do the function that these two things do. I can't find a way around it. I have to use these two, tags?, for the frame to work. Also, I can't find a way to get rid of the border between the upper and lower frames.
The address of this web page is..
http://www.marinemammalstrandingcenter.org/newindex1.htm
How can I solve this problem?

nikkiH
10-08-2007, 02:32 PM
You know all the problems with frames, right? You're going to have to code around quite a few issues if you continue to use them, but want a decent site that users can bookmark, search engines can index, and search pages don't bring them to a page that doesn't have navigation, among other things.

That said, the target attribute of frame is documented.
http://www.w3.org/TR/html401/present/frames.html#h-16.3

If your editor doesn't support it, you should really get a new one.

_Aerospace_Eng_
10-08-2007, 03:28 PM
You know all the problems with frames, right? You're going to have to code around quite a few issues if you continue to use them, but want a decent site that users can bookmark, search engines can index, and search pages don't bring them to a page that doesn't have navigation, among other things.

That said, the target attribute of frame is documented.
http://www.w3.org/TR/html401/present/frames.html#h-16.3

If your editor doesn't support it, you should really get a new one.

It seems that his editor does support it however it has been used incorrectly. Often times when something says its invalid, its because it really is invalid. There is no target attribute associated with a frame.

BarrMan
10-08-2007, 04:26 PM
Why do you have a space in the target attribute?

<frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target=" main">

Shouldn't it be:

<frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target="main">

?

_Aerospace_Eng_
10-08-2007, 05:28 PM
Why do you have a space in the target attribute?

<frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target=" main">

Shouldn't it be:

<frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target="main">

?

No. The target attribute is still INVALID inside of a frame. It needs to be on the link that is to open in the frame. The documentation provided by nikkiH shows this.

nikkiH
10-08-2007, 05:47 PM
Yeah I had reading comprehension issues myself this morning. :D
Mondays...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum