[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

How to disable parent window while child window is open

Asked by sum_it_jec in JavaScript, Java Server Pages (JSP), Java Standard Tag Library (JSTL) & Server Tags

Tags: javascript

HI ,
I have a parent window and i have open a child window using windo.open() . Now the problem is i wants my parent window to be disabled unless child window is closed. i mean user can not click on any button from parent or can not edit any textbox from parent.

If i get a sample code .it will be great.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
this is the code i am using to open new window. 
 
var w = openWindowWithParams('/coast/shared/wait.jsp', "apply_account_general", 90, 90 , 950, 710);	
tbaCustomerform.statusCode.value = status;                                                          
tbaCustomerform.toDo.value = "tba_save_customer_data_TBA";                                          
tbaCustomerform.target ="apply_account_general";	                                            
tbaCustomerform.submit();                                                                           
w.focus();                                                                                          
busyCursor(w.document);	                                                                            
 
 
function openWindowWithParams(url, win, x, y, w, h) {                                           
	 var theWin;                                                                            
    if ( "Netscape" == navigator.appName ) { // netscape                                        
	theWin = window.open(url, win,                                                          
		"screenx=" + x + ",screeny=" + y + ",outerheight=" + h + ",outerwidth=" + w +   
		",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");   
    } else if ( "Microsoft Internet Explorer" == navigator.appName ) { //IE                     
	theWin = window.open(url,  win,                                                         
		"left=" + x + ",top=" + y + ",height=" + h + ",width=" + w +                    
		",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");   
    }                                                                                           
	return theWin;
[+][-]08/17/09 06:11 PM, ID: 25119547Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/17/09 06:13 PM, ID: 25119556Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/20/09 01:08 PM, ID: 25618003Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625