Hi list,
Using javascript, I am trying to populate a select box from a window that I
pop up (child window), but am receiving an error.
Here is the offending function:
<script language="JavaScript">
function add2options(optText,optVal)
var opts;
opts = window.opener.document.forms[0].list2.options;
opts[opts.length] = new Option(optText,optVal, 0, 0);
}
</script>
In the body of my pop-up page, I call the above function with something
like:
<cfoutput>
<input type="checkbox" name="B2" value="Populate"
onClick="javascript:add2options('#query.name#','query.#value#');">
</cfoutput>
Does anyone know how to do this, or have an example that could help me?
I would appreciate any help you can give me.
TIA,
/_)
(8_))}- .
\_) '.
.--. . Chris Wells
: '. .' Enterprise Internet Solutions
'---'`;
. Syntegra (USA), Inc.
_.' [EMAIL PROTECTED]
.' 651/415-4087
'._
` ' ' ' ' '
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.