Hi Kosmaton, > If I wanted to run some javascript every time a tiddler (any tiddler) is > opened, how might I do that?
The easiest way to do this is to write a TW macro and then call that in the ViewTemplate shadow tiddler. That is how all tiddlers are currently displayed using the *view* macro. E.g. <div class='viewer' macro='view text wikified'></div> or the tags macro. E.g. <div class='tidTags' macro='tags'></div> Therefore you can just write a macro (e.g. called MyMacro) and use it somewhere in your ViewTemplate <div macro='MyMacro'></div> This will then be run each time a tiddler is opened. Hope that helps, Colm -- 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.

