[pmwiki-users] FAQToggleList (dltoggle) open/close all in IE

marc gmane at auxbuss.com
Tue Jun 6 04:23:27 CDT 2006


No problems here with installing and getting dltoggle - described in the 
FAQToggleList recipe - to work... at least in Firefox.

The test markup:

(:dltoggle:)
Definition list(s): 
: term : definition 
: term : definition 
Subheaders etc.
: term : definition 
: term : definition 
etc.
(:dltoggleend:)

works fine in both FF and IE, but the 'open all' and 'close all' buttons

(:input submit id=DLToggleOn value='Open All' class=inputbutton:)
(:input submit id=DLToggleOff value='Close All' class=inputbutton:)

fail to work in IE6 here.

Any ideas?


More tech stuff:

The generated HTML for the above (:dltoggle:) is:

<div id=TJK_DL>
<p>Definition list(s): 
</p><dl><dt> term </dt><dd> definition 

</dd><dt> term </dt><dd> definition 
</dd></dl><p>Subheaders etc.
</p><dl><dt> term </dt><dd> definition 
</dd><dt> term </dt><dd> definition 
</dd></dl><p>etc.

    <script type='text/javascript' language='javaScript1.2'>
    <!--
      if (TJK_ToggleDL) TJK_ToggleDL();
    --></script>
</div> 
</p>

The final </p> must be before the </div> for the code to validate. IE 
often goes wobbly with missing </p>s, so as well as being a possible 
cause of the problem - although I doubt it - it also should be fixed, 
imo.

-- 
Best,
Marc





More information about the pmwiki-users mailing list