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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Lincoln (UK)
    Posts
    138
    Thanks
    3
    Thanked 0 Times in 0 Posts

    password protection

    I'm currently using a basic JavaScript password system to check usernames and passwords, this works in tandem with the main html log in system. (html forms can retain user information though IE - JavaScript does not).

    The question is two fold:
    1. is it possible to hide (******) passwords when typing in the promp box.
    2. is it possible to combine the two fields into one alert box, rather like what you see in a NT Domain log-on.
    Oh and 3. Is it possible to replace the "JavaScript Promt" dialogue printed in the prompt box.

    This is the code I'm using at the moment for the promts:
    Code:
    <SCRIPT LANGUAGE="Javascript">
    <!--
    var namePrompt =  prompt("Please enter your username:","");
    var PassPrompt =  prompt("Now, please enter your password:","");
    //-->
    </SCRIPT>
    Any sugestions on suitable code?
    Last edited by Keltoi; 06-19-2002 at 01:08 PM.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Lincoln (UK)
    Posts
    138
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Hi Dave,
    This I know which is why I'm using JavaScript in this area:

    The situation:
    There is a standard html log on for normal users, however if a staff member (higher level access) is in a public area, then they use the JavaScript log on as this doesn't retain information in the same way as in the html form (as you pointed out). - the JavaScript promt boxes currently pass their information through the same system as the html, just don't use html text input boxes.

    So the system works... I'd like to clean it all up a bit, thus my questions:
    To aid security, can you hash out feilds in a JavaScript promt box?
    To tidy things up, is it possible to combine two promt boxes (e.g. NT domain log-on)

    Respect

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Lincoln (UK)
    Posts
    138
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Sorry Dave,
    I thought you were refering to html submission methods only.
    Thanks for your help, it is much appreciated

    Respect

    Keltoi


  •  

    Posting Permissions

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