frame refresh!

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

frame refresh!

Post 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 8)
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

Post 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
-
Last edited by djot on Thu Nov 18, 2004 2:45 pm, edited 1 time in total.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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()
&#123;
  parent.otherframe.location.reload();
&#125;
</script>
<body onLoad = "reload_frame();">
...
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply