" overflow:'visible' " works fine over here.
On 8/12/06,
Tristan Kelley <[EMAIL PROTECTED]> 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@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
--
============================
Brian Peiris
Brampton, Ontario, Canada
[EMAIL PROTECTED] or [EMAIL PROTECTED]
============================
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs