[pmwiki-devel] togglelink recipe
gmane at auxbuss.com
Sat Jan 6 04:19:41 CST 2007
Patrick R. Michaud said...
> On Sat, Dec 30, 2006 at 12:35:27PM -0000, marc wrote:
> > Hans said...
> > > Friday, December 29, 2006, 8:11:42 PM, marc wrote:
> > >
> > > > Just a request for $HTMLHeaderFmt['toggleobj'] to be moved into function
> > > > Toggle(), so that the JS is only written when the function is used.
> > >
> > > This would make sense, but then the JS would not be loaded if the (:toggle
> > > markup is put in the SideBar or RightBar page, because markup in these
> > > pages gets only loaded late, when the HTML head is already written.
> > > this is a dilemma facing many recipes which need to load JS as part of
> > > their functioning, but can't reliably use HTMLHeaderFmt in the function.
> > Ah! I hadn't realised this. Thanks. I suspected that there was a good
> > reason.
> 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.
More information about the pmwiki-devel