PDA

View Full Version : prompt user for password!


charon
11-23-2002, 03:26 AM
hi, I have come across some of the examples about the password protection in Javascript. But, all of them will try to load the page (where the password protection script is coded) and prompt the user for password. Would it be possible for me to write something like, just prompt the Dialog box only without load the page?? once the password has been validated, then only the protected page is loaded.

For instance, like our firewall in proxy server, when the user try to access the internet by enter http://www.yahoo.com, a dialog box will be pop up for password, once the user who has authority for accessing the net, then the page will be loaded.

Thanks!

samraza
11-23-2002, 03:41 AM
Dear Charon

I may have an answer for you, but I would like to know few basic things about this page first.

Does everyone use same password to come to you protected page?

Do you have authoring rights with your server?

Please reply so your problem can be solved.

Samraza

charon
11-23-2002, 03:52 AM
hi samraza,

thanks for your reply....
nop, it will has 8 username and password...

>>Do you have authoring rights with your server?
nop, but I can request from our adminstrator

I'm intend to use VBscript write in ASP, but the MsgBox and InputBox methods seem like only applicable in client side, not server side. Do you have any other ideas.

Thanks!

joh6nn
11-23-2002, 05:02 AM
i suggest .htacces files. ask your admin if you can use them. if you can, here's a short tutorial:

http://www.javascriptkit.com/howto/htaccess.shtml