I think you meant " overflow:''visible'' " instead of
" overflow:''visable'' "
" overflow:''visible'' " works fine over here.
On 8/12/06, Tristan Kelley
<tristankelley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi all,
> I have a toggle function that works fine in Firefox but dies in IE6.
> The script sets the CSS values of a DIV via Element.setStyle to toggle
> between the full DIV and just the header. Here''s what I''m
using:
>
> function sizeToggle(tog) {
> var parentHeight = Element.getHeight(tog.parentNode);
> if (parentHeight > 34){ Element.setStyle(tog.parentNode,
> {height:''35px'',overflow:''hidden''});
}
> if (parentHeight < 100) { Element.setStyle(tog.parentNode,
> {height:''auto'',overflow:''visable''}); }
> }
>
> The first click to set the height to 35px works fine but when you
> click again to restore to full height IE6 throws this error:
>
> Error: Could not get the overflow property. Invalid arguement.
>
> Any ideas?
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
--
===========================Brian Peiris
Brampton, Ontario, Canada
brianpeiris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org or
brianpeiris-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org
===========================
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs