It's this line of javascript causing the problem in IE

for (var class in classes2) {

Here's test code that errors at that line:

<script type="text/javascript">
var classes = 'foo bar bar2 bar3 bar4';
var classes2 = classes.split(' ');
var actions = 
'download,delete,rename,copymove,editimage,unzip,editfile,viewsource';
var arrActions = actions.split(',');
alert(classes2.length);
for (class in classes2) {
        for (var action in arrActions) {
                if ( classes2[class] == 'cffm-menu-'+arrActions[action] ) {
                        alert('ok');
                }
        }
}
</script>

Anyone know why IE is failing there?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337147
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to