View Full Version : 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 :D
Sorry if it's a bit vague :)
I'm not sure if you can do that with javascript. I think you might need to use htacess or something.
I thought so.
Is there anyway I can hide the characters in a prompt box though?
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.
--ss--
18-09-2008, 09:25 PM
Apache .htpasswd ;).
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.
Ah right, I wouldn't have a clue how to do that. Try asking on a proper web development forum :)
Dentafrice
18-09-2008, 10:01 PM
http://us2.php.net/features.http-auth ;)
http styled auth.
iUnknown
18-09-2008, 10:17 PM
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 :P) - not sure if it works in firefox
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.