Beck1
04-30-2004, 03:11 PM
Hi
Would someone be able to help me please? I'm trying to get the new page that this script brings up to load in another frame called "middle", rather than in the same frame, but I can't see how to do it.
Would be very grateful for any help.
Thanks
Beck
<HTML>
<HEAD>
<TITLE>Candidates</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from tired old browsers that should be put to pasture.
////////////////////////////////////////////////////////////////////
/// Get your very own Gate Keeper from Professional Web Design ///
/// http://junior.apk.net/~jbarta/weblinks/gate_keeper/ ///
////////////////////////////////////////////////////////////////////
function goForit() {
var location;
var password;
password=this.document.testform.inputbox.value
location=password + ".html"
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;
}
}
// End hiding --->
</SCRIPT>
<style type="text/css">
<!--
.body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: 333399}
-->
</style>
</HEAD>
<BODY bgcolor="#FFFFFF">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR valign="top">
<TD ROWSPAN=2 WIDTH=50%><img src="images/logo.gif">
<TD WIDTH=50% ALIGN=CENTER> <FONT FACE="ARIAL" SIZE=2><span class="body">This
section is password protected. Please enter the password you have been provided.</span></FONT>
<TR>
<TD WIDTH=50% ALIGN=CENTER>
<CENTER>
<p> </p><FORM NAME="testform">
<p>
<INPUT TYPE="text" NAME="inputbox" VALUE="" size=20>
</p>
<p>
<INPUT TYPE="button" NAME="button" Value="Submit Password" onClick="goForit(this.form)">
</p>
</FORM>
</CENTER>
</TABLE>
</BODY>
</HTML>
Would someone be able to help me please? I'm trying to get the new page that this script brings up to load in another frame called "middle", rather than in the same frame, but I can't see how to do it.
Would be very grateful for any help.
Thanks
Beck
<HTML>
<HEAD>
<TITLE>Candidates</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--- Hide from tired old browsers that should be put to pasture.
////////////////////////////////////////////////////////////////////
/// Get your very own Gate Keeper from Professional Web Design ///
/// http://junior.apk.net/~jbarta/weblinks/gate_keeper/ ///
////////////////////////////////////////////////////////////////////
function goForit() {
var location;
var password;
password=this.document.testform.inputbox.value
location=password + ".html"
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;
}
}
// End hiding --->
</SCRIPT>
<style type="text/css">
<!--
.body { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: 333399}
-->
</style>
</HEAD>
<BODY bgcolor="#FFFFFF">
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR valign="top">
<TD ROWSPAN=2 WIDTH=50%><img src="images/logo.gif">
<TD WIDTH=50% ALIGN=CENTER> <FONT FACE="ARIAL" SIZE=2><span class="body">This
section is password protected. Please enter the password you have been provided.</span></FONT>
<TR>
<TD WIDTH=50% ALIGN=CENTER>
<CENTER>
<p> </p><FORM NAME="testform">
<p>
<INPUT TYPE="text" NAME="inputbox" VALUE="" size=20>
</p>
<p>
<INPUT TYPE="button" NAME="button" Value="Submit Password" onClick="goForit(this.form)">
</p>
</FORM>
</CENTER>
</TABLE>
</BODY>
</HTML>