> I thought that Eric's plugin would enable me to add javascript like using
> <html></html>
Not exactly.
In TiddlyWiki, any <html></html> blocks are simply passed to the
browser for rendering via an 'innerHTML' assignment. Unfortunately,
the browser does *not* invoke any <script>...</script> contained in
that html (it is simply ignored). This is the reason that
InlineJavascriptPlugin is needed, so at least you can embed scripts
*outside* of an HTML block. The plugin works by taking everything in
between <script> and </script> and simply passes it through
javascript's eval() function to invoke that code...
As Fred (FND) notes:
> > The stuff within that SCRIPT tag of yours seems a little odd (looks like
> > it's missing a context object or something). Where did you get those
> > instructions from?
The Yahoo Pipes usage is unusual (at least it is something that I've
not seen done before), so its not clear to me how it is supposed to
work in the first place. It appears that they expect the **object
definition** within the <script>...</script> to be somehow
instantiated as data (which eval() apparently doesn't support,
reporting an 'invalid label' error), and that data is then supposed to
be immediately available to the script loaded by the src="..." syntax
(which InlineJavascriptPlugin *does* process). I will need to dig
through their code to figure out what, if anything, can be done to
make it work.
For 'pure' browser-based script processing, you could try putting
their code in a special tiddler called [[MarkupPreBody]] or
[[MarkupPostBody]]. Then, when you save your document, the content
from those tiddlers is automatically inserted directly into the TW
source file, so that it is processed immediately upon loading the
document. Of course, this doesn't give you the ability to embed the
Yahoo Pipes badge inside tiddler content, but that's about the best
you are going to get (at least until I figure out what they are
doing!)
HTH,
-e