This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes popup windows for Html Forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "popup windows for Html Forms" Watch "popup windows for Html Forms" New topic
Author

popup windows for Html Forms

Abubacker Siddik
Ranch Hand

Joined: Aug 12, 2009
Posts: 90
Hi all,
I want to create a popup window which will contain html form for user input. How can i develop this requirement?
Example site: www.bayt.com
www.monsterindia.com(update resume module)

The site mentioned above is working exactly like how i prefer to develop. The site throws out popup window which is in a sense (modal) window. Through that pop up window the user input is taken (even user login is done in that way).

If any body got some idea, help me out please..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

It's not a popup window. It's just a div that's absolutely positioned at a higher z-index than the rest of the page.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Abubacker Siddik
Ranch Hand

Joined: Aug 12, 2009
Posts: 90
Can you tell me how to achieve that? I dont know how to code like this...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41180
    
  45
It's just HTML, CSS and JavaScript - you can simply examine the page's source code in your browser.


Ping & DNS - my free Android networking tools app
Abubacker Siddik
Ranch Hand

Joined: Aug 12, 2009
Posts: 90
Hi Ulf, But still how to make those pop ups as modal window..Advise me.

Abu.A
Abubacker Siddik
Ranch Hand

Joined: Aug 12, 2009
Posts: 90
Hi all,
I have studied the code and understood how to make popup windows (not really popups) using div and javascript. My final doubt is what the purpose of mentioning z-index property in the css style.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Do you know what z-index in CSS does?

Eric
Abubacker Siddik
Ranch Hand

Joined: Aug 12, 2009
Posts: 90
Eric, I haven't used z-index so far. Some example of div pop up windows advise to use z-index. But i did it without giving z-index. Thats why i got a kind of doubt.. Explain me please.


Abu.A
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Did you google for z-index? Hundreds of thousands of explanations.
 
jQuery in Action, 2nd edition
 
subject: popup windows for Html Forms
 
Similar Threads
Popup focus
Popup Question
dealing with caching in IE
Closing windows in JavaScript
How to refresh the main window once we close the popup