D'oh.

It's "class"

I changed it to "clazz" and it worked.

Checked into subversion!

Rick


On Thu, Sep 16, 2010 at 1:26 PM, Rick Root <[email protected]> wrote:
> 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>
>
> Any

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:337149
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to