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
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Gatekeep open in other frame?

    hello everybody, i wanted to create an easy protection to log in
    so i used a gatekeeper...
    the problem is that ik made the link in the bottomframe..when u click on the link the gatekeeper popup comes up: if u enter the right pass, then u will be directed to the page u wanted, BUT the page that have to open, opens in the bottomframe and i want it to open in the mainFrame.
    somebody knows what to change that it open in the mainFrame and not in the same frame where the link is (bottom)


    the code is used:

    <HTML>
    <HEAD>
    <TITLE></TITLE>

    <SCRIPT LANGUAGE="JavaScript">

    function goForit() {
    var location;
    var password;
    password=this.document.testform.inputbox.value
    location=password + ".htm"
    fetch(location)
    theKeeper=window.close()
    }

    function fetch(location) {
    var root;
    if (opener.closed) {
    root=window.open('','theKeepersGopher','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=y es,resizable=yes,copyhistory=no');
    root.location.href = location;
    } else {
    opener.location.href = location;
    }
    }

    </SCRIPT>

    </HEAD>

    <BODY bgcolor="#5674B6">

    <div align="center">
    <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
    <TR>
    <TD WIDTH=99% ALIGN=CENTER VALIGN=MIDDLE>
    <font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"> <img src="gfc.jpg" width="188" height="120"></font><br>
    <br>
    <font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Voer uw wachtwoord in: </font>
    <TR>
    <TD WIDTH=99% ALIGN=CENTER VALIGN=BOTTOM>
    <CENTER>
    <FORM NAME="testform">
    <INPUT TYPE="text" NAME="inputbox" VALUE="" size=20>
    <INPUT TYPE="button" NAME="button" Value="Aanmelden" onClick="goForit(this.form)">
    </FORM>
    </CENTER>
    </TABLE>
    </div>
    </BODY>

    </HTML>

  • #2
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Triple post. Answered in

    Gatekeep open in other frame?


  •  

    Posting Permissions

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