Re: JS Stops working in IE6
BootNic wrote:
I just tried it on my real app and it worked perfectly. I thank you so
very much. This has been dogging me for over a month now. It was the
last bug (until new ones are found :-) ) that I had to fix.
With 20-20 hindsight, the problem/solution was so obvious that I can
kick myself for not seeing it.
Thanks.
BootNic wrote:
sheldonlg <sheldonlgwro te in
news:2fSdncrzhO GcMqzVnZ2dnUVZ_ o3inZ2d@giganew s.com:
>
[snip]
>I think I see now what you are saying. So, if I understand you
>correctly, I can still keep the visibility as "hidden" (because I want
>it to appear in the same spot no matter which of the many buttons is
>clicked to make it visible), but to give it a z-index of "-1". Then,
>when made visible, also change the z-index to "100". When hiding it
>again, also change the z-index back to "-1". That way it will appear
>on top when I want, but will not be "clicked through" when hidden. Do
>I understand you clearly now?
>
You could keep visibility:hidd en, but display:none would be better.
>
If you are setting a position fixed/absolute, then all visibility:hidd en
does is take up space, you can toggle display and have the same effect
without taking up space when it's not shown, and therefore no need to
toggle z-index. The position will remain the same regardless if it's
display:none or visibility:hidd en, just one takes up space and the other
does not.
>
[snip]
>
news:2fSdncrzhO GcMqzVnZ2dnUVZ_ o3inZ2d@giganew s.com:
>
>BootNic wrote:
>>sheldonlg <sheldonlgwro te in
>>news:C92dnYGd eef5CKzVnZ2dnUV Z_obinZ2d@gigan ews.com:
>>news:C92dnYGd eef5CKzVnZ2dnUV Z_obinZ2d@gigan ews.com:
>>visibility:hi dden; the element still takes up space, holds the
>>position, it's just hidden. The issue is that it is on top of the
>>image you wish to
>> be clicked, and you can't click through exclude_form_cl ass to the
>> image.
>>position, it's just hidden. The issue is that it is on top of the
>>image you wish to
>> be clicked, and you can't click through exclude_form_cl ass to the
>> image.
>correctly, I can still keep the visibility as "hidden" (because I want
>it to appear in the same spot no matter which of the many buttons is
>clicked to make it visible), but to give it a z-index of "-1". Then,
>when made visible, also change the z-index to "100". When hiding it
>again, also change the z-index back to "-1". That way it will appear
>on top when I want, but will not be "clicked through" when hidden. Do
>I understand you clearly now?
You could keep visibility:hidd en, but display:none would be better.
>
If you are setting a position fixed/absolute, then all visibility:hidd en
does is take up space, you can toggle display and have the same effect
without taking up space when it's not shown, and therefore no need to
toggle z-index. The position will remain the same regardless if it's
display:none or visibility:hidd en, just one takes up space and the other
does not.
>
[snip]
>
very much. This has been dogging me for over a month now. It was the
last bug (until new ones are found :-) ) that I had to fix.
With 20-20 hindsight, the problem/solution was so obvious that I can
kick myself for not seeing it.
Thanks.
Comment