Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-08-2007, 03:13 AM   PM User | #1
metmmsc
New to the CF scene

 
Join Date: Dec 2005
Posts: 7
Thanks: 5
Thanked 0 Times in 0 Posts
metmmsc is an unknown quantity at this point
Coding proplem

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.marinemammalstrandingcent.../newindex1.htm
How can I solve this problem?
metmmsc is offline   Reply With Quote
Old 10-08-2007, 02:32 PM   PM User | #2
nikkiH
Senior Coder

 
nikkiH's Avatar
 
Join Date: Jun 2005
Location: Near Chicago, IL, USA
Posts: 1,973
Thanks: 1
Thanked 32 Times in 31 Posts
nikkiH is on a distinguished road
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.
__________________

If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit
http://www.kaelisspace.com/
nikkiH is offline   Reply With Quote
Users who have thanked nikkiH for this post:
metmmsc (10-11-2007)
Old 10-08-2007, 03:28 PM   PM User | #3
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Quote:
Originally Posted by nikkiH View Post
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.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Users who have thanked _Aerospace_Eng_ for this post:
metmmsc (10-11-2007)
Old 10-08-2007, 04:26 PM   PM User | #4
BarrMan
Senior Coder

 
BarrMan's Avatar
 
Join Date: Feb 2005
Location: Israel.
Posts: 1,644
Thanks: 69
Thanked 83 Times in 82 Posts
BarrMan is on a distinguished road
Why do you have a space in the target attribute?
Code:
<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:
Code:
<frame name="header" scrolling="auto" src="topfr.htm" noresize="noresize" title="navigate to mmsc" frameborder="0" marginheight="0" marginwidth="0" target="main">
?
BarrMan is offline   Reply With Quote
Users who have thanked BarrMan for this post:
metmmsc (10-11-2007)
Old 10-08-2007, 05:28 PM   PM User | #5
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Quote:
Originally Posted by BarrMan View Post
Why do you have a space in the target attribute?
Code:
<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:
Code:
<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.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Users who have thanked _Aerospace_Eng_ for this post:
metmmsc (10-11-2007)
Old 10-08-2007, 05:47 PM   PM User | #6
nikkiH
Senior Coder

 
nikkiH's Avatar
 
Join Date: Jun 2005
Location: Near Chicago, IL, USA
Posts: 1,973
Thanks: 1
Thanked 32 Times in 31 Posts
nikkiH is on a distinguished road
Yeah I had reading comprehension issues myself this morning.
Mondays...
__________________

If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
Bored? Visit
http://www.kaelisspace.com/
nikkiH is offline   Reply With Quote
Users who have thanked nikkiH for this post:
metmmsc (10-11-2007)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:08 AM.


Advertisement
Log in to turn off these ads.