Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Internet Explorer Posting between iframes - new window on IE

    Hi,

    This appears to be an age old problem. But I can't seem to find a solution to it.

    I have a page with two iframes on it. They are loading as such:

    Code:
    <iframe id="leftIframe" src="predict_goalkeepers.php" height="900" width="300" frameBorder="0" hspace="0"></iframe>
    
    <iframe id="rightIframe" src="predict_right.php" height="900" width="300" frameBorder="0" hspace="0"></iframe>
    I then want to post something from the leftIframe to the right and refresh the leftIframe at the same time. This I have done through target frame and onclick function. On the leftIframe I have this:

    Code:
    <form action="predict_rightframe.php" method="post" name="form1" id="form1" target="rightIframe">
    
    <input type="checkbox" name="goalkeepers" value="1" onclick="this.form.submit(); window.location.reload(true)">
    This works fine and super duper on Chrome. But when checking on Firefox and IE, the frame is opened in a new window.

    Is there anyway around this?

    I believe there is a "hack" whereby you can get javascript to create the right frame, thereby making it an object. But the only advice I have found is how to create a hidden frame (see here) But I want this frame to be visible.

    Any help on this issue will be extremely helpful - even if its just adapting the above link's javascript code to create a visible iframe.

    Any help and I will be eternally grateful.

  • #2
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,292
    Thanks
    10
    Thanked 583 Times in 564 Posts
    Code:
    <iframe id="leftIframe" name="leftIframe" src="predict_goalkeepers.php" height="900" width="300" frameBorder="0" hspace="0"></iframe>
    
    <iframe id="rightIframe" name="rightIframe" src="predict_right.php" height="900" width="300" frameBorder="0" hspace="0"></iframe>
    if that doesn't fix it it's not going to be worth the effort. just post to a hidden frame and refresh the right frame with the new data...
    my site (updated 13/9/26)
    BROWSER STATS [% share] (2014/5/28) IE7:0.1, IE8:5.3, IE11:8.4, IE9:3.2, IE10:3.2, FF:18.2, CH:46, SF:7.9, NON-MOUSE:32%


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •