473,405 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Login dialog box?

I was wondering how you create a standard login dialog box that is
commonly used before you can enter some sites. It asks for a user name
and password and usually it will have a checkbox asking if the user
wants to save the password in the password list. It is very common
and I am pretty sure everyone knows what I am talking about. I have
been searching through the news groups and I have yet to find anything
that is helpful. I am assuming this can be solved in javascript, but
if there are any another ways to do it I would appreciate that as
well. Thanks very much in advance.
Jul 20 '05 #1
5 10987
Antonio Delgado wrote:
I was wondering how you create a standard login dialog box that is
commonly used before you can enter some sites. It asks for a user name
and password and usually it will have a checkbox asking if the user
wants to save the password in the password list.


<form action="..." ...>
User&nbsp;name: <input name="username"><br>
Password: <input type="password" name="password"><br>
<input type="submit">
</form>

What you are experiencing by the dialog box that is displayed on submit is
a built-in browser feature (I know of it in IE as AutoComplete and as Form
Manager's Auto-Fill-in in Mozilla/5.0,) not something triggered with
JavaScript code.
PointedEars

Jul 20 '05 #2
VK
You must be talking about the Basic Authentication protocol. Any good
browser indeed has a built-in interface to handle this protocol, and a
really good one also provides a way to store password/login locally (if
you want to). The Basic Authentication protocol is initiated by server.
You can mimic it appearance/behavior by using JavaScript, but you cannot
recreate the provided security level.

If you are hosting your site on Apach-driven server (a very good chance
that you are), read
http://www.webdevelopersjournal.com/.../htpasswd.html

It's not so difficult at all.

Jul 20 '05 #3
I am making a web interface that will allow users to interact with a
system through a web browser. And of course must have a user name and a
password to log into the system. I want to have a login dialog box to
get the user's name and password as opposed to a login page. As far as
saving the password with the AutoComplete...I am not worried about
that...I just mentioned that to help describe what the dialog box looks
like. It is pretty common and it looks like any other alert or prompt. I
don't think that it is just HTML because it has the look and behavior of
a dialog box. And it pops up when someone enters a site but before any
web page is opened. I hope this makes sense and that it helps clarify me
earlier post. If not let me know and I will get back to you. And once
again thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 20 '05 #4
Antonio Delgado wrote:
I want to have a login dialog box to get the user's name and password as
opposed to a login page.


You mean HTTP (Basic) Authentication which is not done with JavaScript, too:

http://httpd.apache.org/docs-2.0/howto/auth.html
PointedEars

Jul 20 '05 #5
VK wrote:
You must be talking about the Basic Authentication protocol. Any good
browser indeed has a built-in interface to handle this protocol,


(Basic) Authentication is a feature of HTTP, the HyperText Transfer Protocol
(versions 1.0 and above), not a separate protocol. Thus any HTTP user agent,
including web browsers, is required to support it:

http://www.cis.ohio-state.edu/cgi-bi...45.html#sec-11
http://www.w3.org/Protocols/rfc2616/...c11.html#sec11
PointedEars

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Archie Campbell | last post by:
Most people cancel the "allow anonymous user" and IIS will automatically popup the user login dialog. Not me. I want anonymous users to be able to do somethings. Then, if they want to do more,...
1
by: Kigunda Mbogo | last post by:
Hi, I am having a windows 2003 ADS with exchange 2003. I do have OWA running on the same box. I would like to create a form based login page that would appear on a different virtual...
7
by: TJoker .NET | last post by:
I'm developing an VB.NET Windows Forms application that uses CR for VS.NET (original version shipped with VS.NET 2002 - my VS.NET has the latest SP installed, no SPs for CR). My reports get their...
18
by: Dusty Hackney | last post by:
Hello, I am programming in Visual Basic .NET. I have seen examples of creating a login form to use for users to type in their username and password, but I want to accomplish the same thing with...
0
by: MervinJadhav | last post by:
have a web page named downloads.asp and I have a link on the page as "Click Here to login". When anyone clicks on that link I want that a classic windows login dialog opens up like the one in the...
2
by: samir.kuthiala | last post by:
I do some requests in the background on a page using the XMLHttpRequest object. My site uses NTLM Authentication. However if the user is not logged in, it throws up an ugly dialog box. Is there...
0
bartonc
by: bartonc | last post by:
#Boa:Dialog:DBConnectDialog import wx ##"""Given a set if login specs, create a dbServer instance and ## ensure that there is a valid, open connection to the database. ## If not, set the...
0
by: justlee7 | last post by:
I am new to C#, and am creating a few starter applications. One thing I am hung up on is passing login information to an existing login dialog box. For example, I go to a website on our LAN, which...
0
by: Aussie Rules | last post by:
Hi, I am using vb.net 2008, with a crystal report. I created a report in an empty project and was able to run it OK in that project. In my normal vb.net project, I have included the .rpt...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.