473,624 Members | 2,216 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10996
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
1561
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, they can to go to a "login page". This used to be my own ASP page. Now I dont want that. Instead I want the Windows login dialog to popup. How do I do that. How do I in my ASP page cause the Windows Login dialog to popup.
1
2471
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 directory. Once a user login, i should forward these credentials to the exchange login in page that prompts for the login dialog box. I want to do away with this
7
34774
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 data from ADO.NET Datasets that are pre-populated by other modules of the application. What I need to do is to use these datasets as the datasources of my reports. Fine, I know how to do that and it works perfectly on my development box. The...
18
13531
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 a pop-up dialog box instead. How can I make my program bring up a pop-up login dialog box for a user to type in username and password? Thanks, Dusty
0
1449
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 link https://mail.garobi.ang.af.mil/ I also have a database which is in MS-Access. How will i connect the dialog box with the access table. Please let me know how can I code it, in javascript or in asp
2
10762
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 any way to suppress this? I am ok with the object throwing an error which I can catch. What I want to do is to make a request. Instead of it popping up a dialog box, I want to be able to suppress this dialog and instead forward him to a...
0
7690
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 dbConnect to None. ## spec: dict(UserName=name, Password=pswd, ServerName=host) ## Allow names to be set with Default Holder. Consiter Dictionary ## or even a tuple? (name, pswd, host)"""
0
1629
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 is Windows based, I am prompted for my domain username and password before I can enter. I am writing a program where I collect information from this page, but coannot do so without logging in. How can I pass login information to the login prompt?...
0
1071
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 file from the empty project.
0
8234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8620
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6110
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.