Results 1 to 9 of 9

Thread: Javascript

  1. #1
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default Javascript

    Say I was using a prompt to get somebodies username, and then their password. Is it possible to make the characters hidden, like a conventional password box?

    Or how would I do two, like when you log into cpanel

    Sorry if it's a bit vague


  2. #2
    Join Date
    Jun 2008
    Location
    Manchester
    Posts
    766
    Tokens
    0

    Default

    I'm not sure if you can do that with javascript. I think you might need to use htacess or something.

  3. #3
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    I thought so.

    Is there anyway I can hide the characters in a prompt box though?


  4. #4
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default

    Even if you could, I would imagine it would be quite insecure as the password is probably stored within the javascript, which is freely available via view source? I've done a bit of research on the net and found that the easiest way would be to make a popup window with no toolbars and display a form, so it looks like a prompt box.
    This is our situation and we're happy to be here,
    I wouldn't change this place for anything.


  5. #5
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Apache .htpasswd .

  6. #6
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Joe! View Post
    Even if you could, I would imagine it would be quite insecure as the password is probably stored within the javascript, which is freely available via view source? I've done a bit of research on the net and found that the easiest way would be to make a popup window with no toolbars and display a form, so it looks like a prompt box.
    I wasn't going to process it with js lol.

    It would redirect to a php page with the details to be processed there.


  7. #7
    Join Date
    Jan 2006
    Location
    Kent
    Posts
    987
    Tokens
    0

    Default

    Ah right, I wouldn't have a clue how to do that. Try asking on a proper web development forum
    This is our situation and we're happy to be here,
    I wouldn't change this place for anything.


  8. #8
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:


  9. #9
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Couldn't you modify one of those scripts that change the text that you put into a text box to something else, but keep the value?

    Something like on peteranswers.com (when typing in the petition press . then type in the answer to your question and it will appear like you're typing a "petition" but you're not ) - not sure if it works in firefox
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


Posting Permissions

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