struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henrique VIECILI" <viec...@softplan.com.br>
Subject Re:[OT] Getting the values from Popup window to Parent window if Multiple text fields in parent window
Date Wed, 30 Jun 2004 11:42:15 GMT
Hi Srinivas,

I donĀ“t think my hint will works for other browsers than IE, but you can try to use:
window.showModalDialog()

google it for more details. It shows a modal dialog that returns a value when close, you can
set this value in property
window.returnValue

in the page you called inside the modal.

Henrique Viecili
  ----- Original Message ----- 
  From: Srinivas Rao 
  To: Struts 
  Sent: Wednesday, June 30, 2004 7:12 AM
  Subject: Getting the values from Popup window to Parent window if Multiple text fields in
parent window


  Hi guys,

    
   I am facing samll problem , it's a simple one but i don't know  what is  the wrong i am
doing ...
  Please help me..
  My problem is ...
   I have parent window and child window (ie popup window)..If i  entered 
   the value into text field to popup window then the value come to  the  parent window if
i closed the child window. Here it is working when single file but if it is multiple files,it's
not working .I thing in child window cannot identify the relevant text field.

  the code is here .....
   
   This is Parent window code.........
   
   
   function showList() {
   alert("Call Show List");
   sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list",  "width=750,height=510");
   }
   
   <nested:text property="stockBox" styleId="stockBox" value=""/>
    <html:button property="list" value="list" onclick="showList()"/> 

   Chile window Code......
   
   
   function append()
   {
   alert(window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value);
   document.getElementById("comment").value=
  window.opener.document.supervisorDeskActionForm.getElementById("stockBox").value;
   }

   function pickinf() {
   if (window.opener & !window.opener.closed)
   {
   window.opener.document.supervisorDeskActionForm.stockBox.value 
   =  document.getElementById("comment").value;
   }
   window.close();
   }
   
   
   
   This is the code ....
   
   Please tell me what is the wrong i am doing now...
   
   Thanks to replay to me.....
   
   Thanks 
   Srinivas.



  ---------------------------------
  Do you Yahoo!?
  New and Improved Yahoo! Mail - Send 10MB messages!
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message