Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    password protection

    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

  • #2
    Regular Coder
    Join Date
    Apr 2003
    Location
    Atlanta, GA
    Posts
    487
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: password protection

    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.

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    password protect

    Yes, thats my problem.
    thanks

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Check out this thread:

    http://www.codingforums.com/showthre...5&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.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •