Website: What have I done wrong?
07-06-2005, 19:50
|
#1
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
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
Any ideas?
|
|
|
07-06-2005, 20:04
|
#2
|
|
Inactive
Join Date: Jun 2003
Location: Treasure Island
Age: 80
Services: NTL cable 20mb Broadband, V+ package.
Posts: 1,971
|
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
|
|
|
07-06-2005, 20:04
|
#3
|
|
Inactive
Join Date: May 2005
Age: 61
Posts: 3,170
|
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.
|
|
|
07-06-2005, 20:18
|
#4
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
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
|
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.
|
|
|
07-06-2005, 20:22
|
#5
|
|
Inactive
Join Date: Jun 2003
Age: 45
Posts: 14,750
|
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>
|
|
|
07-06-2005, 20:23
|
#6
|
|
Guest
Location: Sale, Cheshire
Services: 10MB Broadband, DTV, Telephone
Posts: n/a
|
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.
|
|
|
|
07-06-2005, 20:36
|
#7
|
|
Inactive
Join Date: Jun 2003
Age: 45
Posts: 14,750
|
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.
|
|
|
07-06-2005, 20:50
|
#8
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
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.
|
|
|
07-06-2005, 20:58
|
#9
|
|
Inactive
Join Date: Jun 2003
Age: 45
Posts: 14,750
|
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.
|
|
|
07-06-2005, 21:04
|
#10
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
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
|
|
|
07-06-2005, 21:10
|
#11
|
|
Permanently Banned
Join Date: Jun 2003
Location: norton , teesside
Age: 58
Posts: 10,571
|
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
|
|
|
07-06-2005, 21:16
|
#12
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
Re: Website: What have I done wrong?
Yep, i'm seeing it sometimes is Ok sometimes not darn it
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 18:54.
|