View Full Version : need a refresh or something
offthebanaster
10-03-2004, 02:49 PM
I have a site I am working on. Most of it is just navigating threw 1 page stuff,however I do have a place in it where I use a frame set. The problem I have is that when a person is in the section with the frame set, when they hit the link to home, the frame is still there(it loads the home page into the left frame) I know I have to use a reload or something along that line, but I cannot get it to work. Any help would be apriciated.
Thanks
look up the targeting of frames, this is a feature of frames that lets you target certain frames to load information.
Id tell you how to do it, but i dont really have the time at the moment!
but basically
<frameset>
<frame name="mainFrame" src="main.html">
</frameset>
then when you are doing a link do:
<a href="main.hmtl" target="mainFrame">Link</a>
or something similar, i hope im on the right track
AaronCampbell
10-04-2004, 02:17 PM
to get rid of the frames, and show your home page with NO frames that aren't specifically specified inthe home page itself, make your link like this:<a href="index.hmtl" target="_top">Home</a>
You could also try _parent instead of _top
MSDN:
_parent The sURL is loaded into the current frame's parent. If the frame has no parent, this value acts as the value _self.
_top sURL replaces any framesets that may be loaded. If there are no framesets defined, this value acts as the value _self.
You can look at a description of all of these here: http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/target.asp
OR, they give a better description of the same thing when they are talking about the open method. You can read those here: http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/open_0.asp
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.