Hi Sasidhar,
Thanks for replay to me..
I am using Struts,jsp and javascript. My problem is
I got the message from popup window to parent window if it is single file.But if it is
multple files i am not getting the message .
Here is my code .....
parent window code ......
<nested:iterate id="audioList" name="supervisorDeskActionForm" property="audioList"
indexId="idx">
<td nowrap="nowrap"> <nested:text property="stockBox" styleId="stockBox" value=""/>
<html:button property="list" value="list" onclick=" return showList()"/>
</nested:iterate>
<script>
function showList() {
alert("Call Show List");
sList =
window.open("/MTProd/ps/Supervisorcomment.jsp",
"list", "width=750,height=510");
}
</script>
Here Nested:iterate will contains number of files to display.and same nested:text
display more times........
And here is the popup 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();
}
<body onload=append()>
If nested:iterate contains single file, it's working is good but it contains multple
files it's not working...
Please help me....
Thanks
Srinivas
SASIDHAR BUDAMPATI <[EMAIL PROTECTED]> wrote:
Hi srinivas,
Here is code i think is the solution. I worked with it
successfully. Try it.
if (window.opener & !window.opener.closed)
{
window.opener.document.all.state.value =
eval(document.ResultsBody.stateField.value);
window.opener.focus();
self.close();
}
I think this will do.
all the best.
--- Srinivas Rao wrote:
> 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 if it is single
> file to display and popup single file but if it is
> multiple files to display ,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");
> }
>
>
> 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!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!