Scriptaculous problem in IE
Posted
by Django Reinhardt
on Stack Overflow
See other posts from Stack Overflow
or by Django Reinhardt
Published on 2010-06-18T16:01:22Z
Indexed on
2010/06/18
16:33 UTC
Read the original article
Hit count: 315
Hi there. We've got this very annoying problem with Scriptaculous and Internet Explorer 7/8. We have two Effect.toggles on the same page, but only one of them is ever working (the first one). I hope it's some simple mistake in my implementation, but I can't seem to find any decent documentation. Hopefully somebody here can help.
The HTML/JS looks like this:
<ul>
<li id="LinkA" class="icon">
<a onclick="new Effect.toggle('divA', 'slide', { duration: 0.6 }); return false;" href="#">Show List A</a>
</li>
</ul>
<div id="divA" style="display:none">
<div>
-- Things to display --
</div>
</div>
<ul>
<li id="LinkB" class="icon">
<a onclick="new Effect.toggle('divB', 'slide', { duration: 0.6 }); return false;" href="#">Show List B</a>
</li>
</ul>
<div id="divB" style="display:none">
<div>
-- Things to display --
</div>
</div>
It works perfectly in Chrome and Firefox, but the second one never works in IE 7 or 8, no matter what I do.
Any help would be greatly appreciated!
© Stack Overflow or respective owner