View Full Version : password/redirect script
corelo
09-20-2002, 04:13 PM
let me start by stating i am not a programer. i'm a designer who needs some help.
i found a script to redirect users to specific pages on our website. The user types in a username (the page name - html), and is redirected to the appropriate page. The problem i'm having is with the new page. When it opens, the toolbar, scrollbars, etc. are all missing.
<head>
function loadpage(){
var psj=0;
newwin = window.open(document.frm.pswd.value + ".html")
<body>
<form name=frm>
Enter Username<input type=text name=pswd><input type=button value="Proceed" onClick="loadpage()">
</form>
i've tried playing with the code, but have had no luck.
thanks in advance
beetle
09-20-2002, 04:14 PM
Just add this
newwin = window.open(document.frm.pswd.value + ".html","_blank")
corelo
09-20-2002, 04:21 PM
still doesn't work
tommysphone
09-20-2002, 04:26 PM
Opens a nice useable window for me:
<html>
<head>
<title>title here</title>
<script>
function loadpage(){
var psj=0;
newwin = window.open(document.frm.pswd.value + ".html")
}
</script>
</head>
<body>
<br>
<form name="frm">
<p>Enter Username<input type="text" name="pswd"><input type="button" value="Proceed"
onClick="loadpage()"> </p>
</form>
</body>
</html>
beetle
09-20-2002, 04:29 PM
Ok, I'm looking at fragmentary HTML here, and I understand that you may have posted it that way for the forum's sake. But, here's what I would change<html>
<head>
<script>
function loadpage(urlFrag){
var psj=0;
var newwin = window.open(urlFrag + '.html','_blank','');
}
</script>
</head>
<body>
<form name="frm">
Enter Username<input type="text" name="pswd">
<input type="button" value="Proceed" onClick="loadpage(this.form.pswd.value)">
</form>
</body>
</html>
corelo
09-20-2002, 04:39 PM
ok, i don't have a problem in Netscape, but it still doesn't work in IE.
A1ien51
09-20-2002, 04:58 PM
WinPop=window.open("PopUpUrl.htm","WinPop","width=400,height=300,toolbar=1,location=1,directories=1,status=1,scrollbars=1,menubar=1,resizable=1, left=0,top=0,screenX=0,screenY=0,");
corelo
09-20-2002, 05:05 PM
huh? i'm a stupid designer, remember
beetle
09-20-2002, 05:31 PM
Originally posted by corelo
ok, i don't have a problem in Netscape, but it still doesn't work in IE. :confused: What version of IE do you have? Works like a charm for me on 5.0 and 6.0, NS6.2 and Mozilla 1.0
corelo
09-20-2002, 05:41 PM
5.1 for mac
corelo
09-20-2002, 06:15 PM
thanks for all your help. For some reason, it doesn't work on my Mac...no problems.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.