The toggle just isn't working . . . the javascript is being imported in the head:

<script type="text/javascript" src="/sites/all/modules/tableofcontents/tableofcontents.js"></script>

And, the html in the page seems to be generating correctly:

Table of Contents [<a href="#" class="toc-toggle">hide</a>]

<ol>
	<li><a href="#TestDocumentation090208a">Test Documentation 09.02.08a</a>
<ol>

	<li><a href="#TestDocumentation090208a-1">Test Documentation 09.02.08a 
</a></li>
</ol>
</li>
</ol>

But the hide/show link does nothing.. it changes hide to show and back again. Nothing else changes.

Comments

jondblackburn’s picture

Could this be problem w/ jquery or a conflict w/ some other module? Anyone experienced this before?

deviantintegral’s picture

What browser are you using? It's working fine for me in both FF and IE6. Also, are you using jquery_update? It shouldn't cause any problems though.

If you can, it would be great if you could step through the JS as it looks like part of it is working.

--Andrew

antiorario’s picture

It does not work on Safari 3.

deviantintegral’s picture

I just tested the latest -dev version in Safari and Firefox, and it's working fine. I haven't made any changes to the javascript in since the 2.2 release. Are there any errors in your error console?

jondblackburn’s picture

Status: Active » Closed (fixed)

I have since upgraded to d6.