This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Locked pop-up windows Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Locked pop-up windows" Watch "Locked pop-up windows" New topic
Author

Locked pop-up windows

Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 788
On alot of sites nowadays you see windows popping up on top of forms asking for a username and password or such. When these locked windows popup everything on the page greys out and you can't type anything in on the background fields. Any idea what is used to achieve this? Would this normally be an applet or is it likely HTML/Javascript/CSS? If you go to www.monster.com and try and look at a resume it prompts you for username and password. The same effect is what I'm looking for. Any help would be appreciated. Thanks.

Rob
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

It's all just HTML and JavaScript. That's simply a block element with a high z-index. The grayed out background is achieved by creating a block element that covers the window with an opacity value.



[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Rob Hunter
Ranch Hand

Joined: Apr 09, 2002
Posts: 788
Thanks Bear. I thought that the greyed out effect was accomplished by disabling a div container or something and I also thought it may have involved an applet. Thanks for the info.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

No applets needed.

If you want to see an example, check out http://www.bibeault.org/blackbox/. (Uses jQuery, naturally.)
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
There are a bunch of scripts out there. Google: lightbox or thickbox

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Locked pop-up windows
 
Similar Threads
security issue
Single sign using windows credentials
can not understand
authenticating website users with mysql dbase
authenticate w/o LDAP