Not going to tell me I'm just missing a tilde in there, huh? Oh, well. So close...
I've been vaguely aware of the InlineJavascriptPlugin, guess it's time to dive into it. Thanks. On May 8, 1:18 pm, Eric Shulman <[email protected]> wrote: > > First post, so go easy guys.. ;-) > > Around here, that's the rule... newbies are welcome... > > Just say no to "RTFM"! :-) > > > create a link anywhere to execute the macro/plugin, without going through > > another tiddler to do it. > > You can use > http://www.TiddlyTools.com/#InlineJavascriptPlugin > > to create 'onclick' command links that can invoke a macro simply by > returning the desired wiki-syntax content, like this: > -------------------------- > <script label="linktext" title="tooltip"> > return "<<macroName param1 param2 ...>>"; > </script> > -------------------------- > > note: this technique can be used to dynamically render *any* wiki > content, not just simple macros. Also, you can use any javascript > code you like to assemble the desired wiki content. For example: > -------------------------- > <script label="linktext" title="tooltip"> > if (config.options.txtUserName=="SomeName") > return "<<macroName param1 param2 ...>>"; > else > return "<<otherMacroName otherParam1 otherParam2 ...>>"; > </script> > -------------------------- > > and, if you want to return a larger chunk of content, you can use a > separate tiddler or a *hidden* section in the current tiddler to write > the content and retrieve it by using the <<tiddler>> macro, like this: > -------------------------- > <script label="linktext" title="tooltip"> > return "<<tiddler [[ThisTiddler##SectionName]]>>"; > </script>/% > !SectionName > ... wiki content goes here > !end > %/ > -------------------------- > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

