Buggy Website...

liunx

Guest
I have recently been creating my website @ <!-- w --><a class="postlink" href="http://www.geocities.com/brianharris85/">www.geocities.com/brianharris85/</a><!-- w --><br />
I give the user the option to goto frames or no frames but my question only deals with frames. You'll see that if you click on the "news" or "about me" or "portfolio" links, the left frame will update, (it stops you from selecting the site you are at), but the right frame stays the same. The url stays the same too - like it didnt even load a new page?<br />
Here is the code for my NEWS left, (navigation) frame, my NEWS right, (content) frame, and my frameset, (includes both).<br />
They are all pretty much the same coded so I just picked news...<br />
<br />
LEFT FRAME CODE:<br />
<html><br />
<head><br />
<title>Untitled Document</title><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
</head><br />
<br />
<body bgcolor="#FFFF00" text="#000000"><br />
<p><a href=http://www.htmlforums.com/archive/index.php/"frames_home.html">Home</a></p><br />
<p>News</p><br />
<p><a href=http://www.htmlforums.com/archive/index.php/"frames_aboutme.html">About Me</a></p><br />
<p><a href=http://www.htmlforums.com/archive/index.php/"frames_portfolio.html">Portfolio</a></p><br />
</body><br />
</html><br />
<br />
RIGHT FRAME CODE:<br />
<html><br />
<head><br />
<title>Untitled Document</title><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
</head><br />
<br />
<body bgcolor="#CCCCCC" text="#0000FF"><br />
<h2><b>News </b> </h2><br />
</body><br />
</html><br />
<br />
<br />
FRAMESET CODE:<br />
<html><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
</head><br />
<frameset cols="100,*" frameborder="NO" border="0" framespacing="0" rows="*"> <br />
<frame name="navigation" scrolling="NO" noresize src=http://www.htmlforums.com/archive/index.php/"newsframes.html"><br />
<frame name="content" src=http://www.htmlforums.com/archive/index.php/"news.html"><br />
</frameset><br />
<noframes> <br />
<body bgcolor="#CCCCCC" text="#000000"><br />
</body><br />
</noframes> <br />
</html><br />
<br />
Please tell me why it is not loading the whole page that I specified. Thanks!<!--content-->One more thing, I get runtime errors on my page too, any reason?<!--content-->personally i hate frames, never use them, just SUX but thats my opinion.<br />
<br />
<br />
your leftframe code should be like this:<br />
<br />
<html> <br />
<head> <br />
<title>Untitled Document</title> <br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <br />
</head> <br />
<br />
<body bgcolor="#FFFF00" text="#000000"> <br />
<p><a href=http://www.htmlforums.com/archive/index.php/"frames_home.html" target="content">Home</a></p> <br />
<p>News</p> <br />
<p><a href=http://www.htmlforums.com/archive/index.php/"frames_aboutme.html" target="content">About Me</a></p> <br />
<p><a href=http://www.htmlforums.com/archive/index.php/"frames_portfolio.html" target="content">Portfolio</a></p> <br />
</body> <br />
</html> <br />
<br />
<br />
what ive done here is define the targets of your links.<br />
<br />
Youve given your framesets names, like content etc..<br />
<br />
and they should be used, if you make a link make sure you set your target. Basicly what it does when you dont define it is that it will take the default, wich is always itself.<br />
<br />
get it?<!--content-->Originally posted by harrisb923 <br />
One more thing, I get runtime errors on my page too, any reason? <br />
It is a GeoCities error in their popup ads. I don't see them showing up in your frames area and I don't see your coding have anything that would prevent them.<!--content-->I've made the necessary changes - I actually let all the pages use one frame so there they can click on the link to their own page if they want, doesnt harm anything. Anyway, now look what it does, it loads 2 left frames! Why?<!--content-->because you have this in your frames_news.html page.<br />
<br />
<html><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
</head><br />
<frameset cols="100,*" frameborder="NO" border="0" framespacing="0" rows="*"> <br />
<frame name="navigation" scrolling="NO" noresize src=http://www.htmlforums.com/archive/index.php/"frames.html"><br />
<frame name="content" src=http://www.htmlforums.com/archive/index.php/"news.html"><br />
</frameset><br />
<noframes> <br />
<body bgcolor="#CCCCCC" text="#000000"><br />
</body><br />
</noframes> <br />
</html><br />
<br />
take out the frames part. after you loaded the frames the first time, you don't need to load it again. so all you should have is the body. the link in the left should open up news.html<br />
<br />
<html><br />
<head><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
</head><br />
<body bgcolor="#CCCCCC" text="#000000"><br />
</body><br />
</html><!--content-->
 
Back
Top