Javascript pass a value from a popup window into a form field of the opener page -
06-29-2004
, 05:05 PM
here is the poroblem
I want to pass a value from a popup window into a form field of the opener
page.
I have one form on a page. I click the button that opens a browser window.
Here I upload the image. When the image is uploaded I have something like
<CFSET thefilename = file.ServerFile>
<CFOUTPUT>
<SCRIPT language=javascript>window.opener.SetImageName('#t hefilename#') ;
window.close();</SCRIPT>
</CFOUTPUT>
Now the problem is this SetImage function:
It should write the name of the newly uploaded image into the
<INPUT name="image1" value="#SomeDatabaseValue">
Provided that it replaces the "SomeDatabaseValue" with the new value.
Thanks |