Hi Yang,

1) A micro is a macro ;o)
2) It is always good to start with brief overview of what it is you're
trying to achieve (with your macro)
3) If you're hung up on a javascript error, it is helpful to post it
4) Even more helpful is a MTC (Minimal Testcase) that gives us a
simple TiddlyWiki with the basic functionality for what you're trying
to achieve or are having problems with


As for your macro, for most cases I would go down a different
road ...in that I would construct an output string (containing wiki
markup) in the macro code which at the very end of the macro I would
inject using the wikify function, like:

out="!My Heading\n";
out+="Here's My List...\n";
for(i=1;i<10;i++) out+="*Item"+i+"\n";
wikify(out,place);

Also, I am not sure, why you would want those (seemingly rather non-
generic) tabs being hard-coded into your macro. Do you know the
(basics of the) concept called transclusion? It might help you achieve
your goals more easily without much or any javascript:

http://tiddlywiki.org/wiki/Transclusion


Tobias.

-- 
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.

Reply via email to