Solved

Password-box like E-X-login

Posted on 1997-12-14
3
207 Views
Last Modified: 2013-12-25
I want to make a password-box just like  the "experts-exhange" uses to log in.

How can I make it?

Greetings,

Max
0
Comment
Question by:xynyx
3 Comments
 
LVL 6

Expert Comment

by:alamo
ID: 1856001
Depends what server and OS you are using, and how you want to use authorization. There are things you can do, things you can't, and different ways to do it. So you need to tell us more.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1856002
To do it exactly like Experts-Exchange, configure your server to return the headers:

HTTP/1.0 401 Unauthorized
Date: Sun, 14 Dec 1997 21:51:10 GMT
Server: Apache/1.1.2
Content-type: text/html
WWW-Authenticate: Basic realm="Experts Exchange Customer"


0
 
LVL 8

Accepted Solution

by:
jhurst earned 50 total points
ID: 1856003
To really have passwords like E-X you would need to have a server that supports this.  I suspect that you want to do this in JS.  You can get very close by creating a window, with window.open... and then asking for the password in this window.  This smaller window would post the results back into the opener when the submit is pressed.  The submit would also close this window.

The bad news is that, unless you think very carefully anyone who understands JS will be able to look at your code and work out the passwords.  There are ways around this, if you actually have the passwords that are acceptable as pages that are loaded when the password is entered.

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question