PDA

View Full Version : Generically returning selection from popup to main


wendit
05-27-2003, 07:16 PM
I am creating a generic popup utility that does some database enumeration functions. I want the window to return the value selected by the user to a not-so-specific field on the opener form. My problem is, since this is a generic utlity that could be used with any html form, the popup does not know exactly which field to put the selected value into. I would like to pass to the popup window via querystring the form and field names. Is it possible to reference the 'form' and 'field' in window.opener.form.field.value as variables? Or is there another way to genericize this functionality?

Thanks for any assistance.

Wendi
:confused:

glenngv
05-28-2003, 02:51 AM
window.opener.document.forms[formNameVariable].elements[fieldNameVariable].value