PDA

View Full Version : Hey again ppl!



asw
May 5th, 2001, 18:00
At last, I have time to try to do stuff on my web page, and now, as I warned about 2 weeks ago, will some questions come.

I am using Frontpage, but I am having some problems. I want to change my page to frames. It's all good and stuff on the index page, however, whenever I click on a button to go a different page in my site in the left frame, the left frame dissapears and I am left with a full page without frames. I tried back and forth doing different things, but to no avail. If anyone has any quick hints on how to create frames pages so that the only page that will really load is the right frame (while left frame stays and doesn't reload or anything), I would be very happy:)

Thanks

Arve

meow
May 5th, 2001, 20:02
You have to take a look at the code to see what's wrong. I have an inkling that the link doesn't have a target.

Basically it works like this. In the code for the frameset, your index page, each frame (window) is given a name. Later you use that name to refer to each specific frame.
Say you have a main frame and a left frame with a menu. It could look something like this:

<html>

<head>
<title></title>
</head>


<frameset cols="25%,*">

<frame src="menu.html" name="left">
<frame src="page01.html" name="main">

</frameset>

</html>


So, in each FRAME tag, you have information about A) which page will be loaded in that frame from start and B) the NAME of the frame. Remember that the document with the frameset is just that - a set of frames that splits he browser window in several windows. The content of each frame is in different documents (2 in our example, page01.html and menu.html).

Now you probably want links in the left frame that load new pages in the main frame. In each link you have to refer to the frame the page should be loaded in. So in menu.html you write something like this:

<a href="page02.html" target="main">Next page</a>

See? You named the main frame "main" and refer to it with the same name.

Just a hint - it's easier to learn HTML if you write the code yourself. It' hard to correct the output of an editor like FP even if you are experienced, because there is so much trash code and errors that's it's easier to start over. ;)



[Edited by meow on 05-05-2001 at 08:13 PM]

asw
May 6th, 2001, 10:12
Thanks.

I'll try that later today. If it works, I'll post my url so that ppl can see that I actually did it!! If it doesn't work, I'll post so that ppl can tell me what is wrong.

I wish I had time to really learn html, but I don't have it right now.

Thanks again for your advice.

Cheers:)

Arve