aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes diasbling the parent window, until pop-up is closed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "diasbling the parent window, until pop-up is closed" Watch "diasbling the parent window, until pop-up is closed" New topic
Author

diasbling the parent window, until pop-up is closed

Prajatna Mahunta
Greenhorn

Joined: Sep 01, 2008
Posts: 25
I want to restrict the user to do any action in the main (parent) window until, pop-up window is open.

Can any body please help me in this regard , how to do this with help of Java script.



Prajatna Mahunta
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Why is the message all in green? Do you want to make it harder-to-read?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

Contrast is too low. Too hard to read.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Prajatna Mahunta
Greenhorn

Joined: Sep 01, 2008
Posts: 25
I want to restrict the user to do any action in the main (parent) window until, pop-up window is open.

Can any body please help me in this regard , how to do this with help of Java script.


Now I think it is ok to read..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

Best bet is to not use a popup at all but to overlay the main window with a positioned div.

See my BlackBox game implementation for examples.
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Push an transparent iframe on top and use a div element to mimic a popup on top of that iframe.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: diasbling the parent window, until pop-up is closed