chris,
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: From: Chris Wells <[EMAIL PROTECTED]>
:
: It happens when I try to set the variable 'opts'. Could I
: be setting up the object variable (opts) incorrectly? That's
: my guess, anyway. I can read 'opts'
:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i've found the Option() object to be a royal pain in the butt. when i want
to add an option to a <SELECT> i just increase it's length by one and stuff
the values in. see if this doesn't work better for ya:
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
<!--
function add2options(optText,optVal)
{
opts = document.forms[0].list2.options;
optsLen = opts.length;
opts.length = opts.length + 1;
opts[opts.length - 1].text = optText;
opts[opts.length - 1].value = optVal;
}
// -->
</SCRIPT>
lemme know if that works better for ya.
good luck,
.jeff
name://jeff.howden
game://web.development
http://www.evolt.org/
mailto:[EMAIL PROTECTED]
------------------------------------------------------------------------------
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.