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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript Assistance

    Thank you in advance for your responses.

    I have a site that has a small javascript written to look at the htaccess/htpasswd file so that a particular directory is password protected. It's worked fine for the last year until recently.

    The main login form generates a user***@url type URL for getting the person past the login prompt. Microsoft has disabled that feature with the latest round of IE updates so you can't do that anymore.

    Anybody have any suggestion on the login in on this site (http://www.bentsndents.com) to make it work correctly or a better way than Javascript.

    Here is the JS code:

    <SCRIPT LANGUAGE="JavaScript">

    <!-- Begin
    function Login(form) {
    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;
    }
    else {
    alert("Please enter your username and password.");
    }
    }
    // End -->
    </script>

    TIA

    Jeff

  • #2
    New to the CF scene
    Join Date
    May 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Typo

    sorry for the Emoticon drop, it should have read user:pass

    Jeff


  •  

    Posting Permissions

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