Tobias -- Thanks for the tips (and code)!
> The most important question is: In what context do you want to use > this? Do you really want to output a table or would you rather want to > provide a count for the length of any input element's value? ...which > is what the following does using a bunch of jQuery statements: > > http://pastebin.com/CgCwt7Rx That is SO much more elegant than my cobbled-together plugin (using a free character-counting script I picked up years ago) -- but I'm trying to eliminate the HTML inside a tiddler. What I'm shooting for a plugin that will allow a technophobic user to type "<<characterCounter>>" into a tiddler and (voila!) have an input area they can type or paste into for counting characters (in view mode). I've posted the one I'm using into a stripped-down TW at TiddlyWiki [dot] Secret-HQ [dot] com -- but I don't want to spread it around too much, since I don't want to be responsible for folks downloading half- baked plugins. ;) > In general. Do not put forms as strings into your macro or plugin. > Instead put templates into a dedicated tiddler or section (of your > plugin) and get it's content in the macro like so... > > template=store.getTiddlerText('MyTemplateTidler##TemplateSection'); Invoking template sections that way is new to me. I'll start digging momentarily, but here are my immediate questions: How do I define the template section in the tiddler? Just with an H1- level header, like this ... ? /*** !MyPlugin ***/ //{{{ code code code //}}} /*** !Defining the Macro ***/ //{{{ code code code //}}} /*** !OutputTemplate ***/ //{{{ the HTML for the form I want to print inside the tiddler //}}} And how do I call that from the macro? Like so ... ? createTiddlyElement(place,div,divId,class,template); (I suspect that I'm oversimplifying that last bit -- but I'm off to try it out and see!) Thanks for the tips and patience in 'splaining everything. -- 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.

