Hi Ajay, Thanks to the intrest and replay to me.It's working when one or single file displaying but if more than one file it's not working .I don't know why it is not working ... I thing its not identify the relavent text field..... Please help me.... Thanks Srinivas
Ajay Patil <[EMAIL PROTECTED]> wrote: Dear Srinivas, I am a little confused by your emails. Is the name of form correct ? i.e supervisorDeskActionForm or should it be SupervisorDeskActionForm ? Check your struts-config.xml. What you are trying is possible. Your code also looks correct. Perhaps there is some minor bug, which you have to find and fix. My understanding is : a) When child window comes, you are not getting initial value from parent window. b) When OK is clicked on child window, the value gets set in parent window. Is Step (b) working ? If Step (b) is working, then Step (a) should also work. If you are stuck, then do View Source in your parent window and examine the HTML source of parent window, and check if there is a property called stockBox present. I really havent worked with the nested tags. Have you included the tld for the nested tags at the top of your HTML page ? Ajay > 1.) popup window come up properly and i am not getting any error. > 2.) I have wrote the append() funtion in child window but i am not > getting the initial value from the parent window . > 3.) I am not getting any error from parent window or child window. > > > Actualy my problem is, i am getting the list of files and i > display the files one by one,and I enter the relavent comment to > the each files. This is the problem.I traid but i am not getting > the values from popup window. > > Is it possible enter comment to each files,what is the way to > solve this problem. > > Here is the code >>>>> > > Parent window .... > > > > > Child Window... > > function append() > { > alert(window.opener.document.forms ["supervisorDeskActionForm"].getElementById("stockBox").value); > document.getElementById("comment").value=window.opener.document.forms ["supervisorDeskActionForm"].getElementById("stockBox").value; > } > function pickinf() { > if (window.opener && !window.opener.closed) > { > > window.opener.document.forms ["supervisorDeskActionForm"].stockBox.value = document.getElementById ("comment").value; > } > window.close(); > } > > > > > > > > > > > Plz tell me the way to solve this problem... > > Thanks > Srinivas > Ajay Patil wrote: > Dear Srinivas, > > You have mentioned that you are facing a small problem, but you > havent given any information on where the problem is coming. > > 1. Does the child window (popup) come up properly ? > > 2. Does it contain the initial value correctly ? > i.e does you append function in child window work correctly ? > > 3. Do you get any error message in browser ? > If yes, what is it ? > > 4. Does the browser crash ? If yes, did you try to debug ? > > If you can give above information, maybe I can try to help you. > > Anyways, looking at your code, > TRY CHANGING THE FOLLOWING IN ALL JAVASCRIPT FUNCTION > > ORIGINAL --> > window.opener.document.supervisorDeskActionForm.getElementById > ("stockBox").value > > MODIFIED --> > window.opener.document.forms ["supervisorDeskActionForm"].stockBox.value > > Let me know if this is helping you, > Ajay > > > > > > > > Date: Sun, 27 Jun 2004 21:25:31 -0700 (PDT) > From: Srinivas Rao > Subject: problem Please Help me..... > To: [EMAIL PROTECTED] > > 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......... > > > function showList() { > alert("Call Show List"); > sList = window.open("/MTProd/ps/Supervisorcomment.jsp", "list", > "width=750,height=510"); > } > > > > > > > property="audioList"> > styleId="stockBox" value=""/> > onclick="showList()"/> > > > Chile window Code...... > > > function append() > { > alert(window.opener.document.supervisorDeskActionForm.getElementById ("stockBox").value); > document.getElementById ("comment").value=window.opener.document.supervisorDeskActionForm.getEle mentById("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!? > Yahoo! Mail - 50x more storage than other providers! --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!