You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Leonardo Maciel <LM...@Scient.com> on 2002/05/23 18:08:39 UTC

RE: Help needed.........Need to Pass values from the popup to the ac tion handler

write a JavaScript function on your parent window
<!--
	function fromPopup(par1, par2, ...) {
		document.forms[0].field1.value = par1;
		document.forms[0].field2.value = par2;
		...
	}
-->

from the popup, when exiting, call the parent window function

<!-- 
	function exiting(par1, par2, ...) {
		window.opener.fromPopup(par1, par2, ...);
		window.opener.focus();
		self.close();
	}
-->


 



-----Original Message-----
From: Susmita Pati [mailto:SPati@alsysinc.com]
Sent: Thursday, May 23, 2002 12:01 PM
To: 'Struts Users Mailing List'
Subject: Help needed.........Need to Pass values from the popup to the
ac tion handler


  Hi All

I need to popup a window from the click of a button. select some values.
Then pass this value to the action handler. 

Can someone help me pls.

Thanks in advance
susmita

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>