struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kawczynski, David" <>
Subject RE: [S2] why is javascript executed before DOM is updated
Date Wed, 03 Jun 2009 17:12:18 GMT
>> How can I use the  popup window to call a div of the parent form
The function returns a reference to the opened window.
You can change your (url... )
To read 
   var newWin = )
   newWin.opener = window;
Then you'd have an "opener" attribute in your opened window that 
points to the original window; this can be used to get the div:

Personally, I would drop the use of the window and implement a 
CSS-styled modal div of some sort.  

-----Original Message-----
From: tutul [] 
Sent: Wednesday, June 03, 2009 12:34 PM
Subject: Re: [S2] why is javascript executed before DOM is updated


I am sorry to hijack this thread but I have a similar question. I have a
parent form and upon clicking  a link, it opens up  a popup window to
some form fields. When the user saves this form in the popup, a part of
parent window should get updated. How can I use the  popup window to
call a
div of the parent form. Below I am giving a snippet of my jsp. the
javascript addEditAudit method will open up  a jsp and upon submitting
form in the popup, the popup should update the <div id="details"></div>

Any help in this matter would be greatly appreciated

     function addEditAudit(url) { (url, "addEditWindow", "height=400, width=700");    
	<link rel="stylesheet" type="text/css" href="css/style.css" />
	<s:i18n name="com.hmsonline.auditgui.web.Messages">
		<div class="dataTableHeader"><s:text
		<s:form name="addEditAuditForm"
			id="addEditAuditForm" method="POST"
			<table align="center" class="dataTable"
				<tr class="formField">
					<th><s:text name=""
					<th><s:text name="audit.type"
					<th><s:text name="audit.duedate"
					<th><s:text name="audit.source"
					<th><s:text name=""
name="audit.comments" /></th>
					<th><s:text name="audit.status"
				<s:iterator value="auditRequestsGui"
name="auditRequestsGui[%{#stat.index}].id" />
value="id" /></td>
value="type" /></td>
value="dueDate" /></td>
value="source" /></td>
value="auditData" status="aData">
<td><s:property value="key" />:</td>
<td><s:property value="value" /></td>
cols="15" rows="4" id="comment"
id="auditRequestsGui[%{#stat.index}].status" list="statuses"
disabled="true" />
							 # Undo Changes 
	<div  id="details">
			<div align="center">
key="button.submit" cssClass="actionButton" /></td>
					<td><s:reset key="button.cancel"
cssClass="actionButton" /></td>

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message