[thelist] New select option

Stevenson Ngila Stevenson at epr.footman-walker.com
Fri Mar 28 04:12:25 CST 2003


I get a run time error:

<><><><><><><><><><><><><><><>
Invalid Argument
<><><><><><><><><><><><><><><>

When i use the add method using IE 6.

Can anybody help?



-----Original Message-----
From: sharpkiddie at slip.csosl.co.uk
[mailto:sharpkiddie at slip.csosl.co.uk]On Behalf Of Mark Kennedy
Sent: 26 March 2003 18:02
To: Stevenson at epr.footman-walker.com; thelist at lists.evolt.org.uk
Subject: Re: [thelist] New select option


Try the add method:

http://msdn.microsoft.com/workshop/author/dhtml/reference/collections/option
s.asp

Mark


On Wed, 26 Mar 2003, Stevenson Ngila wrote:

>
>am using:
><><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><
>
><<><><><<><><><<><><><
>oDestination.options[ oDestination.options.length ] = new Option(
>oOption.text, oOption.value );
><><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><
>
><<><><><<><><><<><><><
>
>to dynamically create a new option in javascript but am getting the
>following error:
>
><><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><
>
><<><><><<><><><<><><><
>object doesn't support this property or method
><><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><><<><><
>
><<><><><<><><><<><><><
>
>What could be the problem? Any ideas?
>
>Thanks,
>Stevenson Ngila
>Footman-Walker Associates Ltd
>http://www.footman-walker.co.uk
>
>
>--
>* * Please support the community that supports you.  * *
>http://evolt.org/help_support_evolt/
>
>For unsubscribe and other options, including the Tip Harvester
>and archives of thelist go to: http://lists.evolt.org
>Workers of the Web, evolt !
>



More information about the thelist mailing list