//flex table opened by JP

Click to See Complete Forum and Search --> : HTML Question


Snuffy!
09-14-2000, 10:22 AM
This is something that has been bothering me for ages. When most people have a page, and you go into a new section of the page, just say you go into a "links" section, usually the page will be something like
http://www.examplepage.com/links.html

That's good, because it means you can give someone that url, and they can go directly to the links section. But when I make a page, just say it's something like
http://www.mypage.com

every time i go into a new section of my page, it stays in the same address. What I mean is, if I click on a "games" section, it will go to that section, but it will still be
http://www.mypage.com

instead, i want it to be
http://www.mypage.com/games.html

i don't understand how to make it go into seperate pages in the address.

The only things I can think of, that i'm doing wrong, is in my index.html, or the way i link to a new section. I'll show you the way I do it.

this is my index.html

HTML><TITLE>The page of Snuffalufagus</TITLE>


<FRAMESET COLS="18%,82%">
<FRAME NAME="A" SRC="left.html">
<FRAME NAME="B" SRC="main.html">
</FRAMESET>

</HTML>

And this is the way I link to new sections

<br><A HREF="games.html" TARGET="B"><IMG SRC="games.jpg"Border="0"><a/></h3>

this was a very hard question to type out, so i'm sorry if it is confusing, or doesn't make any sense.

FrozenLiquidity
09-14-2000, 11:22 AM
I believe that this is the result from using frames.

I think you made the main page that has frames, so basically the site is just telling the computer to load other pages to display.

<FRAMESET COLS="18%,82%">
<FRAME NAME="A" SRC="left.html">
<FRAME NAME="B" SRC="main.html">
</FRAMESET>

see, you don't really have a website for your index.html, and the index.html file is telling the computer the site it wants to display in a certian frame.

Are you following me so far?

When you are at your main page and you click on a link, it is then going to load the page whose' link you clicked on into the frame. Whenever you click to a link for a different site, it will load that site into the frame to replace the site you were just at. So no matter where you go you will still be at index.html, except you have other sites loaded into the frames of the browser.

I am not sure of how to eliminate this problem, but many people use tables rather than frames.

I hope that helps!

FrozenLiquidity

howste
09-14-2000, 11:28 AM
I don't see anything wrong with the code you have there. I compared it to the code of some web pages I've done that are doing the same thing and it seems consistent. You have a main page containing two frames, A & B. What you're doing is clicking a link in frame A to open a new page in frame B.

Depending on what stage of development you're at, you may or may not have a problem. The URL shown in the IE Address window will not change when you do this. It will always show the URL of the main page, because the two frames are still just a part of it. So, if you're looking for the URL to change, it won't. Even if the page content changes it will stay the same. If you do have two pages, games.html and main.html, that are visibly different that don't change when you click the link, then you do have a problem.

My guess is that you've got two blank (or identical) pages, so you can't see that it really did change. If this isn't the case, post back and we can look into it more.

Steve

- edit -
I just re-read your post and realized that you are really trying just to get the address to change in the window. If all you want is to be able to give someone a URL to link to, you still can. If they go to http://www.mypage.com/games.html it would open up the games page, but would be missing the menu on the left side. If you really need to have the URL for the games page in the address window, the games page itself would have to have the frames. Or, you could do what FrozenLiquidity said and use tables instead of frames and each individual page would have the links in the table.

[This message has been edited by howste (edited 09-14-2000).]