Toka
11-24-2003, 09:43 AM
Hi
Please could anyone help a.s.a.p
I have a login form which works fine in explorer but won't work in netscape can anyone help.
I have the following code in the head of the document
function Login(form) {
var form = document[0];
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server;
window.location = htsite;
function login() {
var username = frmLogin.username.value;
var password = frmLogin.password.value;
var server = "217.34.217.125";
var site = "http://" + username + ":" + password + "@" + server;
child = window.open(site,'child','');
test();
}
And the following in the body
<form name=login>
<input type="hidden" name="server" value="217.34.217.122/Prod
Cat/default.asp?Region=Compressor">
<B><Font Face="Arial" size="1" color="#000080">Username:</Font></B>
<input type=text name=username size=18>
<B><Font Face="Arial" color="#000080" size="1">Password:</Font></B>
<input type=password name=password size=18>
<a href="javascript:Login(this.form)">
<img src="/local/It/uniq0371d.nsf/GO_44.jpg?OpenImageResource" border = "0">
</a></form>
I have also attache the full document
Thanks in advance for any response/help
Toka
Please could anyone help a.s.a.p
I have a login form which works fine in explorer but won't work in netscape can anyone help.
I have the following code in the head of the document
function Login(form) {
var form = document[0];
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server;
window.location = htsite;
function login() {
var username = frmLogin.username.value;
var password = frmLogin.password.value;
var server = "217.34.217.125";
var site = "http://" + username + ":" + password + "@" + server;
child = window.open(site,'child','');
test();
}
And the following in the body
<form name=login>
<input type="hidden" name="server" value="217.34.217.122/Prod
Cat/default.asp?Region=Compressor">
<B><Font Face="Arial" size="1" color="#000080">Username:</Font></B>
<input type=text name=username size=18>
<B><Font Face="Arial" color="#000080" size="1">Password:</Font></B>
<input type=password name=password size=18>
<a href="javascript:Login(this.form)">
<img src="/local/It/uniq0371d.nsf/GO_44.jpg?OpenImageResource" border = "0">
</a></form>
I have also attache the full document
Thanks in advance for any response/help
Toka