View Full Version : password protection

08-13-2003, 04:55 PM
I dont seem to have a valid url in my JS file. Trying to point to a folder within a folder.

I than save this to my directory as = drpage.js
so username is=dr
password= page

page not found
thank you

08-13-2003, 05:05 PM
Originally posted by collie

Was the slash (in red above) a typo? If not, that's your problem. The server is looking for a directory named drpage.html which lives inside the directory named drpage. If that sub-directory doesn't exist, the server will give a 404 error.

This probably isn't a javascript issue, really, unless you're using javascript to write that URL, in which case it should be easy enough to track down.


08-13-2003, 07:38 PM
Yes, thats my problem.

08-14-2003, 01:32 AM
Check out this thread:


I even created a VBScript file which will automatically generate javascript files for this method - as long as you're using Windows, that is.