<div dir="ltr"><div><div><div>"It must have been a virus?"<br><br></div>I can say I'm not sure what happened, because I'm not -- but I had to have somehow edited that file.<br>The weird thing is, I had no reason to even go into the code and look at it until I had the problem with only the last toggle on the page functioning.<br>

<br>???<br><br></div>It's perfectly fine in one of my recent installs, screwed up in the other.<br><br></div>Sorry for the trouble.<br></div><div class="gmail_extra"><br clear="all"><div>-Michael Paulukonis<br><a href="http://www.xradiograph.com" target="_blank">http://www.xradiograph.com</a><br>

<a href="http://goog_2112721603" target="_blank"></a><a href="http://www.xradiograph.com%5Cinterference" target="_blank">Interference Patterns (a blog)</a><br><a href="https://twitter.com/XraysMonaLisa" target="_blank">@XraysMonaLisa</a><br>

<a href="http://michaelpaulukonis.com" target="_blank">http://michaelpaulukonis.com</a><br><a href="http://www.BestAndroidResources.com" target="_blank"></a><br><br>Sent from somewhere in the Cloud<br>(hearthrug, by the fender)<br>

</div>
<br><br><div class="gmail_quote">On Thu, Jul 3, 2014 at 9:12 PM, Hans Bracker <span dir="ltr"><<a href="mailto:design@softflow.co.uk" target="_blank">design@softflow.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello Michael,<br>
<div class=""><br>
Tuesday, July 1, 2014, 5:18:10 PM, you wrote:<br>
<br>
> In the toggle.php recipe of 2014-02-21, we see the following:<br>
<br>
> $HTMLFooterFmt['toggle'] = "<script type=\"text/javascript\">document.getElementById(\"{$id}\").style.display = '{$style}';</script>";<br>
<br>
> This should create a simple string that is places into the HTMLFooterFmt hash with the index of "toggle."<br>
<br>
> How on earth is toggle supposed to function if there is more than one toggle present on the page?<br>
<br>
</div>sorry, but toggle.php version 2014-02-21 as on <a href="http://pmwiki.org" target="_blank">pmwiki.org</a> does not contain the code line you quoted!<br>
Instead it contains the line (as did previous versions):<br>
<br>
   $HTMLFooterFmt[] = "<script type=\"text/javascript\">document.getElementById(\"{$id}\").style.display = '{$style}';</script>";<br>
<br>
So  it  is working just fine, because multiple instances each with the<br>
correct id of each toggle object are created in the HTML footer (exactly what Chrisses<br>
mentioned).  The main java script is injected into the HTML foter just<br>
once, which is also fine.<br>
<br>
So  I  do  not  understand why you have an issue with toggle.php. Am I<br>
missing something?<br>
<br>
<br>
cheers,<br>
 Hans<br>
mailto:<a href="mailto:design@softflow.co.uk">design@softflow.co.uk</a><br>
<a href="http://www.softflow.co.uk" target="_blank">www.softflow.co.uk</a><br>
<br>
</blockquote></div><br></div>