> The script works, but when I try to use it as a plugin I get Place not
> defined (last line of the code, in the else section)

The 'place' variable is automatically defined by
InlineJavascriptPlugin whenever it processes a embedded <script>...</
script> block (i.e., when the tiddler containing the script is
displayed).  In this context, 'place' refers to the target DOM element
in which the script output (if any) will be rendered.

In contrast, when the same code is entered directly into a tiddler
tagged with 'systemConfig', it is invoked during document startup,
before any DOM elements have been created.  Thus, 'place' is simply
not defined yet, and references to it will fail.

-e
Eric Shulman
TiddlyTools / ELS Desgin Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to