Hi It is working perfect!!!!!!!!!! thanks and regards hanmayya udgiri
On 8/22/06, Anjishnu Bandyopadhyay <[EMAIL PROTECTED]> wrote:
Hi, You can try something like: function updatetext() { var val = document.getElementbyid("secondForm.attribute").value; window.opener.func(val); } Here, "func" is a JS function in the parent window. In "func", write your code to set the value. With best regards, Anjishnu. -----Original Message----- From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 6:50 PM To: Struts Users Mailing List Subject: Passing value from pop window to parent window Hi I have a pop up window.And I need to pass the value from a text box to parent window. pop up window The text box in the child window is something like this <html:text property="secondForm.attribute"/> <html:submit onclick="updatetext()"/> function updatetext() { parent.document.getElementbyid("secondForm.attribute").value = document.getElementbyid("secondForm.attribute").value = } the attribute are same in both parent and pop up window. And I have anested form. I am not getting error after submitting and in the javascript i am getting the text field value correctly. but in parent window it is not setting the value. Any help will be highly appriciated -- Thanks and Regards Hanmayya Udgiri **************** CAUTION - Disclaimer ***************** This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS******** End of Disclaimer ********INFOSYS***
-- Thanks and Regards Hanmayya Udgiri