[pmwiki-devel] togglelink recipe

Jon Haupt jhaupt at gmail.com
Sat Jan 6 11:11:30 CST 2007


On 1/6/07, Hans <design5 at softflow.co.uk> wrote:
> Saturday, January 6, 2007, 10:19:41 AM, marc wrote:
>
> >> Is there a strong reason why the JS cannot be loaded into
> >> $HTMLFooterFmt instead?  That's pretty well guaranteed to be output
> >> after all markup and other items...
>
> > None here. But Hans will know more than I do about the likely effects.
>
> I updated both togglelink.php and showhide.php to load the javascript
> inside the function via $HTMLFooterFmt.
>
> See http://www.pmwiki.org/wiki/Cookbook/ShowHide
>
> Thanks for the tip!
> When togglelink was developed we did not have $HTMLFooterFmt.
> That was the reason for not using it up till now! :)
>
>
> Hans
>
>
> _______________________________________________
> pmwiki-devel mailing list
> pmwiki-devel at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
>

Do note that this requires that your skin use <!--HTMLFooter-->
somewhere, or the code has nowhere to go.  (the skin I was using
didn't, so I had to figure out what was going on when I updated!)

Jon



More information about the pmwiki-devel mailing list