Hi Ajay , I changed the value but i am not getting any message from popup window to parent window .... Is it possible to get the message from popup window to parent window? Thanks to replay to me.. Thanks Srinivas
Ajay Patil <[EMAIL PROTECTED]> wrote: Dear Srinivas, Try changing the following... ORIGINAL --> window.opener.document.forms["supervisorDeskActionForm"].getElementById ("stockBox").value MODIFIED --> window.opener.document.forms["supervisorDeskActionForm"].stockBox.value Please notice that I have removed getElementById before stockBox. Please make the above change in your append function. Let me know if this works. Ajay > Hi Ajay, > Thanks replay to me and sorry for late B'case i am trying to > another way, but not getting Please tell me the solution, is it > possible to get the popup window value to parent window? > > This is the information ur asking ... > 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!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com