Results 1 to 4 of 4

Thread: [RESOLVED] I-frame and refreshing aspx page of I-frame

  1. #1

    Thread Starter
    Lively Member VB_client's Avatar
    Join Date
    Feb 2004
    Location
    India
    Posts
    87

    Resolved [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

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    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]

  3. #3

    Thread Starter
    Lively Member VB_client's Avatar
    Join Date
    Feb 2004
    Location
    India
    Posts
    87

    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

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359

    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
  •  



Click Here to Expand Forum to Full Width