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 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 60800
    
  65

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: 60800
    
  65

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: diasbling the parent window, until pop-up is closed
 
Similar Threads
window.open parent and Child
Tough Task
Fetching Pop up window form values in Parent Window.
Close Popup and refresh parent
Refreshing Parent Window from Child