I am not sure what the problem is.
 
next to your form field you have something to click and open up a window
like
onclick="javascript:popupWindow=open('#pageurl#','selectionwindow'#winproper
ties#);">
 
pageurl points you to index.cfm?fuseaction=blah.blah&whatever else you need
to pass
winproperties are your popup window properties
 
your popup window is just a page that has the query, form, select box,
whatever you needed.
 
then however you decide that the "popped up" form is done you call a
function
like onclick="updateMyOpener();"
 
and you have the function that looks something like this
<script language="JavaScript"><!--
function updateMyOpener() { 
  
  opener.document.formname.fieldname.value =
document.poppedupformname.poppedupfieldname.value;
       
  window.close();
}
//--></script>
 
Fusebox has no bearing on this
 

-----Original Message-----
From: eric aislinn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 3:43 PM
To: [EMAIL PROTECTED]
Subject: RE: Popup window to set data in a form field


Thanks Shawn. I understood already that one would use Javascript. I was more
curious about the details of setting a form field value from another
independent window, the "calls back to the opener" as you put it. If you're
calling a fuseaction to open the popup window, then its not a child of the
window the form is in ... maybe this is more of a javascript question than a
fusebox question, I don't know. I guess I'll do something less elegant.
 
Eric

-----Original Message-----
From: Shawn Regan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 7:40 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Popup window to set data in a form field



Just use javascript of course. Make a fuseaction for your popup and make
calls back to the opener. 

Shawn Regan 

-----Original Message----- 
From: eric aislinn [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ]

Sent: Wednesday, June 19, 2002 1:43 PM 
To: Fusebox (E-mail) 
Subject: Popup window to set data in a form field 


Hello, 

I'm wondering how to accomplish something in fusebox. I want to allow a user

to set a particular field either by picking from a list of existing items in

the db or by typing in something new. I thought I could have a form with a 
text input field and next to the descriptor I could have a link to a popup 
window that would generate a picklist that when selected would close the win

and populate the input field, but I'm not sure how to work it with fusebox. 
Any ideas? 

Regards, 
eric 

Eric Aislinn 
President 
hyla media, inc. 
206.427.4064 
[EMAIL PROTECTED] 

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================




Reply via email to