Page 1 of 1
frame refresh!
Posted: Thu Nov 18, 2004 11:30 am
by Joe
This is a fairly straightforward problem however, I cannot seem to solve it. I am working on a file manager package which consists of two frames and I am having a small problem with refreshing the 'non-target' frame so it can read the session. (the session is used to hold the directory name). Is there any technique available that refreshes the 'non-target' frame whenever the 'target' frame is refreshed/redirected. Sorry if this was a bad explination but I sure hope someone can help me!.
Fullest Regards
Joe

Posted: Thu Nov 18, 2004 2:44 pm
by djot
-
Hi,
The only way (I know) to refresh more than one frame is to use javascript.
See example given, the yellow boxes -->
http://de.selfhtml.org/javascript/beisp ... frames.htm
djot
-
Posted: Thu Nov 18, 2004 2:44 pm
by pickle
If I understand you correctly, you want both frames to reload when a particular one is reloaded. I think you could put an onLoad statement in the body tag of the target frame that reloads the other frame. Something like:
Code: Select all
<script language = "javascript">
function reload_fram()
{
parent.otherframe.location.reload();
}
</script>
<body onLoad = "reload_frame();">
...