Title: RE: Popup window to set data in a form field
Eric,
 
Here is an example of how you could do that. This is from I site I did recently.
 
On the calling page:
<a href="#request.self#?fuseaction=transactions.icd9Search"
         ><img src="javascript:void(0);" width="16" height="16" alt="" border="0"></a>
 
Just basically a big long link that has your fuseaction as well as all of the JS stuff need for the popup window, and most importantly, establishing the name of the page that opened the window.
 
In the pop-up window:
<a href="##" >#formattedDX#</a>
 
This popup window displayed records from a database query and each record was linked. Clicking on the link above would pass the value back to the opener window, and close the pop-up window.
 
Hope it helps,
 
Dan
-----Original Message-----
From: eric aislinn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 4: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]]
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