...

View Full Version : Gatekeep open in other frame?



fmiama
02-16-2007, 12:19 PM
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>

koyama
02-17-2007, 09:23 PM
Triple post. Answered in

http://www.codingforums.com/showthread.php?t=107624



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum