HighDots Forums  

Javascript pass a value from a popup window into a form field of the opener page

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Javascript pass a value from a popup window into a form field of the opener page in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
forums.macromedia.com
 
Posts: n/a

Default 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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.