struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anjishnu Bandyopadhyay" <>
Subject RE: Passing value from pop window to parent window
Date Tue, 22 Aug 2006 13:30:36 GMT


You can try something like:

function updatetext()

{           var val =



Here, "func" is a JS function in the parent window. In "func", write
your code to set the value.

With best regards,


-----Original Message-----
From: Hanmay Udgiri []
Sent: Tuesday, August 22, 2006 6:50 PM
To: Struts Users Mailing List
Subject: Passing value from pop window to parent window


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

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***
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message