Hi sharma, function updateParent(){ opener.document.form1.name.value = document.childForm.others.value; self.close(); return false; }
In the above code the value is not reflecting in the parent jsp -----Original Message----- From: Kapil Sharma [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 3:07 PM To: Struts Users Mailing List Subject: RE: Need Help On Pop Up //calling the child (popup ) window function fnOpenPopup (path, values) { CHECK_CHANGE = 1; if (childWin && !childWin.closed) { childWin.close(); } var params="toolbar=0,"; //toolbar off params+="location=0,"; //location/address box off params+="directories=0,"; //directories off params+="status=0,"; //status bar off params+="menubar=0,"; //menu baroff params+="scrollbars=1,"; //scrollbar on(comes only if size of window is too small for text) params+="resizable=0,"; //cannot be resized params+="left= "+200+","; //position of window from left in pixels params+="top= "+200+","; //position of window from top in pixels params+="width=100,"; //width of window in pixels params+="height=400"; //height of window in pixels if (values != null) { childWin = window.open(path + "?hdnModePopup=Y"+"&"+values, "popup", params); } else { childWin = window.open(path + "?hdnModePopup=Y", "popup", params); } if (childWin.opener == null) childWin.opener = self; childWin.resizeTo(750,350); childWin.moveTo(30,80); childWin.focus(); } called on submit of popup child window function updateParent(){ opener.document.form1.name.value = document.childForm.others.value; self.close(); return false; } All the values will move to the name field of the parent Thanks and Regards, Kapil Sharma -----Original Message----- From: Srinivasula Reddy A , Bangalore [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 6:27 PM To: Struts Users Mailing List Subject: RE: Need Help On Pop Up No friend I need how to update the parent jsp with the selected value of pop up jsp -----Original Message----- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 2:50 PM To: Struts Users Mailing List Subject: Re: Need Help On Pop Up 2007/5/8, Srinivasula Reddy A , Bangalore <[EMAIL PROTECTED]>: > > Hi Struts User Community, > ... > In struts how I can do this please give me sample rough code of JSP, > ACTION CLASS, ACTION MAPPING ELEMENT, and POP UP JSP CODE. It seems like homework! You're asking too much, friend. Try to search the internet, write some code and, then, ask a specific question. Antonio DISCLAIMER: ------------------------------------------------------------------------ ---- ------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ------------------------------------------------------------------------ ---- ------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]