Hi! I figured out the solution to the second problem and it solved the first problem as well. Seems all I had to do was put the code inside a macro.
I am curious though, why did the story.findContainingTiddler(place); throw an error? Also, I noticed that sometimes, it is used as story.findContainingTiddler(this);. Can someone explain the reason? w On Aug 26, 7:13 pm, whatever <kbrezov...@gmail.com> wrote: > Hi! > > I made a script which outputs the result on a nested slider (1) > floating panel. I transcluded it into the toolbar, so I have a > pulldown menu. It works as it should. However, I want to include it > into a plugin I'm working on. So I removed the <script> tags and added > the systemConfig tag to see how it worked, but I got an error that > "place" was undefined. > > I tracked the error to the following piece of code: > var here = story.findContainingTiddler(place); > if (here) { > var tid = store.getTiddler(here.getAttribute("tiddler")); > > } > > Any idea what the problem is? > > Also, because the script wasn't between the <script> tags, the tiddler > displayed the actual text of the script instead of the wikified > result. I'm using the wikify function. How do I output the wikified > result? > > I posted the code on pastebin (2). > > (1)http://www.TiddlyTools.com/#NestedSlidersPlugin > (2)http://pastebin.com/PZmLrQDV > > w -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to tiddlywiki@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.