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
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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?


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56229
    
  13

Contrast is too low. Too hard to read.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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: 56229
    
  13

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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: diasbling the parent window, until pop-up is closed
 
Similar Threads
window.open parent and Child
Refreshing Parent Window from Child
Fetching Pop up window form values in Parent Window.
Tough Task
Close Popup and refresh parent