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
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question iFrame-name.location problem redirect parent window

    After executing the iFrame-name.location=url (which worked fine by way,) there is a very undesirable event; the parent window also gets redirected to the same url. I am calling this function from a click event on an Image object. I have tried everything from return(false); to window.event.cancelBubble = true; nothing stops the parent window from navigating. The interesting thing is, if I hit the Back button it goes back and still redirect the parent window automatically, over and over.

    The odd thing is I have identical code in another project and I never had problems.

    Here is a portion of my javascript func:

    function clicked_SubmitScreensBtn() {

    var url = "ovExplorer.asp?Action=show&QData=BLABLABLA";
    var iFrDoc = document.frames("ifrmOVExplorer").document;

    iFrDoc.location.replace(url);

    window.event.cancelBubble = true;
    return(false);
    }

    And this is my iFrame in the HTML of the parent window:

    <iframe name="ifrmOVExplorer" id="ifrmOVExplorerID" src="blank.htm" style="Z-INDEX: 10; VISIBILITY: visible; POSITION: absolute; LEFT: 22; TOP: 380; WIDTH: 306px; HEIGHT: 280px;" marginwidth="1" marginheight="1" align="left" border="0" frameborder="0" scrolling="no">
    </iframe>

    Can anyone please help!

    Thanks,

    Mauro

  • #2
    New to the CF scene
    Join Date
    Sep 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm having a similar problem. Anyone know why?


  •  

    Posting Permissions

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