Well, I think the problem was my IE7 browser.
When I started to play with the code trying to solve the errors. a lot
of "Unknown Error" javascript messages started to show up.
So, I downloaded a fresh IE7 build, installed it, and the problems
described in this thread were gone.

Sorry for the noise.

On 10 ene, 08:23, Roland Pish <[email protected]> wrote:
> 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