You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Srinivas Rao <sr...@yahoo.com> on 2004/06/28 06:08:12 UTC

problem Please Help me.....

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 close the child window. the code is here .....
 
This is Parent window code.........
<script>
 
function showList() {
 alert("Call Show List");
  sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", "width=750,height=510");
}

 
</script>
 
 
 
<nested:iterate id="audioList" name="supervisorDeskActionForm" property="audioList">
  <td nowrap="nowrap"> <nested:text property="stockBox" styleId="stockBox" value=""/>
<html:button property="list" styleId="list" value="list" onclick="showList()"/></td>
</nested:iterate>
 
Chile window Code......
 
<script language="javascript">
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();
}
</script>
</head>
<body onload="append()">
<form name="popupwindow">
<center>
<nested:text property="comment" styleId="comment" value=""/>
<html:button property="Done" value="Done" onclick="pickinf()"/>
</center>
<form>
 
 
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!?
Yahoo! Mail Address AutoComplete - You start. We finish.