Try onClick="window.opener.document.location.href='parent.cfm?id='+document. forms.myform.resid.value"
otherwise document.forms.myform.resid.value is not evaluated as a variable, and the actual string is passed. You might try alert()ing document.forms.myform.resid.value to make sure it is what you expect, and dump url on the parent page to see what it is received. ~Brad -----Original Message----- From: Ken [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 10:34 AM To: CF-Talk Subject: Re: form target Here's what i using now: <input type="button" onClick="window.opener.document.location.href='parent.cfm?id=document.fo rms.myform.resid.value'" value="Submit"> but it is not passing the value into the url. Please help. On 10/26/06, Ken <[EMAIL PROTECTED]> wrote: > Ok. What i want to do is this: > > From the popup window, on submit I want to pass the value of a field > to the parent window, then close the pop-up. > > I hope the above clears any doubts about what i need. > > On 10/26/06, Coldfusion <[EMAIL PROTECTED]> wrote: > > Try something like this: (did not test it) > > > > <form target="_parent" onSubmit="SubmitMyForm()"> > > > > <script type="javascript"> > > SubmitMyForm(){ > > document.forms[0].submit(); > > self.close(); > > } > > </script> > > > > > > > > -----Original Message----- > > From: Ken [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 26, 2006 10:11 AM > > To: CF-Talk > > Subject: form target > > > > Sorry guys. I think I missed my morning coffee. I'll just re-phrase my > > question. Please ignore previous post. Here goes: > > My page opens a pop-up window (a cfm page). From there I want to submit a > > form to the first page, the base window, and once that is done, I want to > > close the pop-up. > > Please help. > > > > Thanks, > > K > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258115 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

