|
-
Jan 5th, 2005, 07:32 AM
#1
Thread Starter
Lively Member
[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
-
Jan 6th, 2005, 02:15 PM
#2
Retired VBF Adm1nistrator
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.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jan 7th, 2005, 03:15 AM
#3
Thread Starter
Lively Member
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
-
Jan 7th, 2005, 03:46 AM
#4
Retired VBF Adm1nistrator
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...
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|