Hi there.

I have the following code:

var slideThumb = $$('.slide.active .thumbSmall');
if(slideThumb) {
     slideThumb = slideThumb[0];
     slideThumb.setStyle('display', 'block');
}

But the line that makes the call to "setStyle" is producing an
"invalid argument" error on mootools core in IE7 browser (this code
works ok in Chrome,Safari,Firefox and IE8)

What I did was to replace that line with:

slideThumb.style.display = 'block';

So far so good. But I found another line that needed to be replaced:

slideThumb.setStyle('min-height', 'inherit');

So I proceeded to replace it with:

slideThumb.style.minHeight = 'inherit';

but it produced the "invalid argument" error.

Also tried with something like:

slideThumb.style['min-height'] = 'inherit';

and the same error occurs.

What can I do to avoid these "invalid argument" errors on IE7 when I
call setStyle?

Or is there a workaround for this?

Any help is much appreciated.

Kind regards

Reply via email to