Click to See Complete Forum and Search --> : frames


kevin10
06-28-2003, 03:49 PM
Hi, i am new to this stuff.
I am trying to create a webpage with frames.
I have index.htm, main.htm, menu_bar.htm pages like on Dave's tutor webpage.
I do exactly what Dave tells us to do.
there is one problem, when i click on the index.htm, I have a page with frames and links in the menu window, that is good. When click on the links in the menu window i have the new page loaded in the bigger window, frames are still there, that is good. but if i click on another link or the same link, i have the new page loaded to a new window without any frame, this is bad. Can someone help me how to keep frames every time i click on a link.
Thanks a lot

Jona
06-28-2003, 03:56 PM
Could you please post a link to the page? Chances are it has something to do with your TARGET attribute being missing or invalid.

[J]ona

kevin10
06-28-2003, 04:01 PM
this is the link to that webpage. It's just a model for me to learn, there is nothing much on it.

www.pages.drexel.edu/~alt34/index.htm

Thanks for your help.

Jona
06-28-2003, 04:13 PM
Odd, perhaps you should add the proper structure to your pages and it would correct this error. A frameset page should look like this:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html lang="en">
<head><title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<frameset cols="10%,*">
<frame src="left.html" name="navigation">
<frame src="main.html" name="main">
</frameset>
<noframes>
<p>You do not have frames, you should <a href="noframes.html">view this site without frames</a>.</p>
</noframes>
</html>


A simple note, you may want to try taking the "window" part out of "mainwindow."

[J]ona

kevin10
06-28-2003, 04:24 PM
it's really odd because it works for the first 2 clicks (on any 2 links), then it loads the third link into a new window without any frame.

PeOfEo
06-28-2003, 09:56 PM
this can happen if the site you are linking has a frame in it.

kevin10
06-29-2003, 12:07 AM
Thanks Peofeo, I guessed that too. I changed all the links to pages I created, it worked find. But why is that? Do you or anyone know a way around this problem? Thanks again.

PeOfEo
06-29-2003, 12:59 AM
I am afraid I dont, I have never bothered looking for a solution thought because it has never been much of an issue to me.