[RESOLVED] I-frame and refreshing aspx page of I-frame
Hi,
I am using 3 I-frames in a aspx page and each I-frame's src to 3 different aspx pages.
Now If I change the session variable in the aspx page of 1st I-frame the value for the same session variable in the 2nd or 3rd aspx file remains unchanged.
If I refresh the 2nd or 3rd I-frame by right click inside the I-frame and click refresh then it gets changed.
How can I do this (refreshing) other I-frames when 1 I-frame is clicked...?
Anybody have an idea about this...?
Thanks in advance
Re: I-frame and refreshing aspx page of I-frame
The easiest method I can think of is that when the session is changed in any of the 3 I-Frames, the I-Frame that changed the session should output javascript to cause the other 2 frames to refresh.
Re: I-frame and refreshing aspx page of I-frame
Thanks plend....
but sorry... How can I write the java script coding to trigger the other Iframes session from an I-frame
Re: I-frame and refreshing aspx page of I-frame
Off the top of my head I believe IFRAMEs are referenced nearly indentically as normal FRAMEs. So, in the IFRAME that changes, you could try something like this (by the way I haven't tested this):
Code:
<script language=javascript>
document.parent.iframe2.refresh();
document.parent.iframe3.refresh();
</script>
Something like that perhaps? I don't know if there's a refresh() method off-hand... I think you reset the frame's current location and it will trigger a refresh...