Earthlink and Simple External JAVA Script

D

Dennis

Hello,

I have a very simple external JAVA password script that restricts
access to a single web page. This tests fine in my local Dreamweaver 3
development environment on both IE and Netscape.

When running on an Earthlink host however, I have a simple problem. My
Web site runs fine there except for the password feature. Earthlink
returns "can't find the page" after the correct password is input. I
can see the page on the server there, but when my little script is
processed, the Earthlink server can't find it.

Here is the script:


var password=prompt("A password is required for access to the XYZ
members directory.\n","");

if (password == "maninthemoon") {

document.write('<p align=center><a href=./memdir.htm><font size="+4"
color="#FF0000">Click here for Member Directory</font></a></p> ');

}


The page "./memdir.htm" is the one Earthlink says it can't find!

I'm a script newbie, but I think the directory reference to memdir.htm
is wrong and I don't know JAVA enough to fix it.

Any ideas?

Thanks in advance.

Dennis
 
C

Christophe Vanfleteren

Dennis said:
Hello,

I have a very simple external JAVA password script that restricts
access to a single web page. This tests fine in my local Dreamweaver 3
development environment on both IE and Netscape.

When running on an Earthlink host however, I have a simple problem. My
Web site runs fine there except for the password feature. Earthlink
returns "can't find the page" after the correct password is input. I
can see the page on the server there, but when my little script is
processed, the Earthlink server can't find it.

Here is the script:


var password=prompt("A password is required for access to the XYZ
members directory.\n","");

if (password == "maninthemoon") {

document.write('<p align=center><a href=./memdir.htm><font size="+4"
color="#FF0000">Click here for Member Directory</font></a></p> ');

}


The page "./memdir.htm" is the one Earthlink says it can't find!

I'm a script newbie, but I think the directory reference to memdir.htm
is wrong and I don't know JAVA enough to fix it.

Any ideas?

First of all, "protecting" a site using such kind of script is just
ridiculous. That would never work in real life.

Second, this is a java newsgroup, not javascript. And that may not even be
the right group, since it seems you can't get the link right, which is a
html problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top