I'd trash the eval and use getElementById().

What is newComm and what is being passed into opt?

On 2/26/07, David Hannum <[EMAIL PROTECTED]> wrote:
> OK - I'm no guru for sure.  Anybody know how I would do this?
>
> function ckOptions(opt) {
>         var oCt = 0;
>         for(i=0;i<eval("document.newComm."+opt+".length");i++) {
>                 if(eval("document.newComm."+opt+"[i].selected") == true) {
>                         oCt++;
>                 }
>         }
> }
>
> The call to the index is not getting processed .  How can I do this?
>
> thanks,
> Dave
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/Javascript/message.cfm/messageid:3654
Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33

Reply via email to