Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   Website: What have I done wrong? (https://www.cableforum.uk/board/showthread.php?t=29931)

MovedGoalPosts 07-06-2005 19:50

Website: What have I done wrong?
 
A plea for help, with reps on offer to whoever can show me the error of my ways (blatant bribery I know, but hopefully it will work ;) )

Ive set up a fairly basic web site for my work, using only html code written in M$ Frontpage 2000 ('cos it came bundled with Small Business Server) and I don't know html or anything more sophisticated.. I know the style is a bit old, and the coding even worse, and do want to update eventually.

I have a small problem. The site is set up into frames, the top bar should be a constant navigation bar, with the side left frame, a local contents page and the right hand main area the main text. However I have links in the main text that should clear both the main right hand and left frames, and return to the home or index page. That sort of works, but I seem to keep the original top navigation bar, and then also load a new navigation bar duplicate under the original together with the main index page content.

With apologies for spamming (but I don't know how else to explain myself):
http://www.curchodandco.com/ is the index page. Now click on say "Building Surveying" and the "Party Wall Matters". That all works fine. Now scroll down the Party Wall text. At the bottom is a red logo. Click that should return to the home page, but instead does the duplicate reload :confused:

Any ideas?

Roy MM 07-06-2005 20:04

Re: Website: What have I done wrong?
 
Check the direction in the red logo linl to home page, it seems corrupt like this:- http://www.curchodandco.com/BS/BSHome.htm it shoul read this:- http://www.curchodandco.com

Graham 07-06-2005 20:04

Re: Website: What have I done wrong?
 
Quote:

Originally Posted by MovedGoalPosts
Any ideas?

I think the problem is that you're opening a frame, then using an "absolute" link (http:// etc) without including TARGET="_top" meaning that it's opening in the referring window.

In all honesty, you should probably skip the frames entirely, they're generally frowned on these days.

MovedGoalPosts 07-06-2005 20:18

Re: Website: What have I done wrong?
 
Quote:

Originally Posted by Graham
I think the problem is that you're opening a frame, then using an "absolute" link (http:// etc) without including TARGET="_top" meaning that it's opening in the referring window.

yep the actual code is
Code:

<a href="../index.htm">
Are you able to convert that into your format?

Quote:

In all honesty, you should probably skip the frames entirely, they're generally frowned on these days.
Yep I suspect I am very out of date. A redesign is on the cards once I understand what I've got wrong with the current site.
__________________

Quote:

Originally Posted by Roy MM
Check the direction in the red logo linl to home page, it seems corrupt like this:- http://www.curchodandco.com/BS/BSHome.htm it shoul read this:- http://www.curchodandco.com

Thanks, but it's the logo at the bottom of the party wall page that's the problem. Points to the right place i.e. the site's index page, just doesn't repoen that page as I expected.

punky 07-06-2005 20:22

Re: Website: What have I done wrong?
 
That picture link is wrong. At the moment, it is pointing to

http://www.curchodandco.com/index.html

That is your frame page. When you do that, it loads that frame page, again, within the frame you are calling it from.

What you want to do is change the link to:

http://www.curchodandco.com/Main.htm

And instead of loading the frame again, it will just load the front page.

Or, If you want to refresh the frame, in that link, then keep the url as you have it and add:

target="_parent"

like this:

<a href="http://www.website.com/whatever.htm" target="_parent">Link text</a>

JohnHorb 07-06-2005 20:23

Re: Website: What have I done wrong?
 
It's even worse if you click the logo on the 'Building Surveying' page!

Graham has the answer - if he he doesn't reply while I'm typing this, you need

<a href="../index.htm" target=top>

I think, or it may be

target="_top"

[Edit] This will open in the top-most frame, or Punky's

target = "_parent" will open in the parent frame - which may be the same.

punky 07-06-2005 20:36

Re: Website: What have I done wrong?
 
http://www.yourhtmlsource.com/javasc...ingframes.html

would explain your problem and the difference between _parent and _top

You'd only really need top if you go down two or more levels, which you shouldn't if you code properly. If you only go down one level (like you are) then either is fine.

MovedGoalPosts 07-06-2005 20:50

Re: Website: What have I done wrong?
 
Thanks guys. I'll have to have a play around. Altough I've tried both the target= options of _top and _parent, it doesn't seem to make a difference. The site might be getting cached somewhere though, so I'll have to wait till tommorrow to see what's happenning from the office.

punky 07-06-2005 20:58

Re: Website: What have I done wrong?
 
Quote:

Originally Posted by MovedGoalPosts
The site might be getting cached somewhere though,

Could well be. You can force a full refresh by hitting ctrl-f5. If that doesn't work, you can change your proxy.

MovedGoalPosts 07-06-2005 21:04

Re: Website: What have I done wrong?
 
Wohoo, It's done it. just VPN'd to the office network and checked from there.

Thanks a lot all :clap: :clap: :clap:

paulyoung666 07-06-2005 21:10

Re: Website: What have I done wrong?
 
not quite , it is still wrong when i check it , if i do a ctrl f5 it is right , i aint no web guru so i am not sure of the significance of this , i just thought i would let you know :(

MovedGoalPosts 07-06-2005 21:16

Re: Website: What have I done wrong?
 
Yep, i'm seeing it sometimes is Ok sometimes not darn it :(


All times are GMT. The time now is 16:43.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum