I'd trash the eval and use getElementById().
What is newComm and what is being passed into opt?
On 2/26/07, David Hannum <oujasper seomug.org> 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+".l
ength");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/Jav
ascript/message.cfm/messageid:3654
Subscription: http://www.houseoffusion.com/groups/Javascript/subsc
ribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/u
nsubscribe.cfm?user=22184.15789.33
|