...

View Full Version : password protection



collie
08-13-2003, 03:55 PM
I dont seem to have a valid url in my JS file. Trying to point to a folder within a folder.
"http://www.something.com/krisweb/drpage/drpage.html/"

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

page not found
thank you

Choopernickel
08-13-2003, 04:05 PM
Originally posted by collie
"http://www.something.com/krisweb/drpage/drpage.html/"

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.

HTH.

collie
08-13-2003, 06:38 PM
Yes, thats my problem.
thanks

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

http://www.codingforums.com/showthread.php?s=&threadid=10114&perpage=15&pagenumber=4

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum