[Top] [All Lists]

Re: Passing back data from a popup window

Subject: Re: Passing back data from a popup window
From: "sanman"
Date: Wed, 8 Aug 2007 17:31:31 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
It's really easy to do that. 
 If the name of form in initial page is 'myform', and input field name is 
'employeename'  then in the 2nd page where you do a lookup, you would link the 
list of names like this:

 <a href="javascript:setback('')"></a>

 The link calls the javascript below which updates the original field and 
closes the 2nd window

 <script language="Javascript">
 function setback(name)
  opener.document.myform.employeename.value = name;

<Prev in Thread] Current Thread [Next in Thread>