[pmwiki-users] Javascript on a single page
H. Fox
haganfox at users.sourceforge.net
Mon Feb 13 15:59:46 CST 2006
On 2/12/06, kirpi at kirpi.it <kirpi at kirpi.it> wrote:
> > I just created this page
> > [http://www.pmwiki.org/wiki/Cookbook/Javascript] with the hope it is
> > useful to many.
> > Please check for English and code correctness, for I'm weak at both ;-)
> > Luigi
>
> I was just thinking: what if I need to place part of the javascript in
> the <head>?
> Imagine I set up a form in a page...
> Example: http://javascript.internet.com/forms/auto-sum-form-boxes.html
> Is there a way for this?
For something a 2-part script like that you would probably put the
<head> part in the skin's template or use $HTMLHeaderFmt. The part
that goes within the <body> would be some kind of custom markup that
creates, e.g. (:sumform:).
http://www.pmwiki.org/wiki/PmWiki/LayoutVariables#HTMLHeaderFmt
http://www.pmwiki.org/wiki/PmWiki/CustomMarkup
Hagan
More information about the pmwiki-users
mailing list