Solved

Disable parent window when popup is open

Posted on 2009-05-14
8
948 Views
Last Modified: 2012-05-07
Is there a way to disable the parent window when a child (popup) window is open?
0
Comment
Question by:cuttieveenz
8 Comments
 
LVL 39

Expert Comment

by:abel
ID: 24384637
when you popup with DialogModal the underlying window will not be accessible.
0
 
LVL 19

Expert Comment

by:erikTsomik
ID: 24384692
0
 
LVL 39

Expert Comment

by:abel
ID: 24384765
This technique, however, only works on IE:

<body>
    <p>click on the button</p>
    <input type="button" onclick='window.showModalDialog("http://www.google.com");' value="show google modal" />
</body>
</html>

Open in new window

0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 39

Expert Comment

by:abel
ID: 24384777
Yes, the lightbox and the greybox are excellent alternatives to this....
0
 
LVL 39

Expert Comment

by:abel
ID: 24386468
I created a little example and find out along the way that showModalDialog works on both browsers (IE, FF) but its semantics is lightly different on FF then on IE. The example also shows GreyBox, but I didn't manage to get LightBox working timely. http://www.undermyskin.org/external-examples/ee-questions/Q_24408354/ (use View Source to see the source of how I did it, which is basically the same as I showed above).
0
 
LVL 9

Expert Comment

by:Roman Gherman
ID: 35099253
Hi,

I have created a jQuery function: showModalDialog which works on all major browsers: IE, Chrome, Safari and Firefox.

You can see the entire article on my blog: http://extremedev.blogspot.com/2011/03/windowshowmodaldialog-cross-browser-new.html
0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 37194229
Question PAQ'd and stored in the solution database.
0

Featured Post

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question