Basically, MarkupPreHead and it's brethren give you a way to splice
content directly into the TiddlyWiki HTML file. The reason that this
is necessary is that ordinary <HTML> blocks inside tiddlers are only
processed by the browser when the containing tiddler is displayed.
This works fine for most HTML fragments, but can cause problems with
HTML fragments that were designed to be processed when the page is
loaded.

The most common example is <script> tags, which are used on HTML pages
to bring in external JavaScript content. The solution is to place
these bits of HTML in MarkupPreHead or it's variants. The different
between all the variants is that they insert their HTML at different
points within the file.

Cheers

Jeremy

On Fri, Feb 26, 2010 at 3:20 PM, Craig in Calgary
<[email protected]> wrote:
> Correct me if I'm wrong, but
>
> <script type="text/javascript" src="http://........program.js";></
> script>
>
> allows you to place additional javascript code into the TiddlyWiki
> that is available for execution from anywhere within the TiddlyWiki.
> In this Google Groups post (http://groups.google.com/group/tiddlywiki/
> t/816618119cd2b5d9/6a419e9937d23cf4), Eric Shulman recommends putting
>
> <script type='text/javascript' src='supersleight.js'></script>
>
> in MarkupPreHead to provide access to a jquery plugin. Jeremy Ruston
> also recommends jquery plugins be placed in MarkupPreHead (see
> http://groups.google.com/group/tiddlywiki/msg/08cd4210810518d5). With
> the exception of Bram Chen's 
> http://ptw.sourceforge.net/TiddlyWiki123.zh-Hant.html#MarkupPreHead
> (which is chock full of interesting content) and Pascal Collins'
> http://visualtw.ouvaton.org/VisualTW.html, which has
>
> <script type="text/javascript" src="fckeditor/fckeditor.js"></script>
>
> in MarkupPreHead, a quick search of 144 TiddlyWikis I have local
> copies of found that the only content in MarkupPrehead is
>
> <link rel='alternate' type='application/rss+xml' title='RSS'
> href='index.xml'/>
>
> However, according to http://tiddlywiki.com/#CustomMarkup,
> MarkupPreHead is where meta data such as Keywords and Description
> should be placed. Sidebar: I have often wondered why TiddlyWiki
> developers don't put Keywords and Descriptions in their TiddlyWikis.
> Doesn't that improve SEO?
>
> Code such as
>
> <link type="text/css" rel="stylesheet" href="sh/
> SyntaxHighlighter.css"></link>
>
> is usually placed in MarkupPostHead. That's where I've been putting
> it.
>
> Craig
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/tiddlywiki?hl=en.
>
>



-- 
Jeremy Ruston
mailto:[email protected]
http://www.tiddlywiki.com

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to