Hello,

I've built a macro, say frdmacro, that deals with fields.
I have tested it and it works the way its was intended to.

Now I'd like to add a parameter in the macro in order to call another
function after the macro has done its job but before existing the
macro.

I would call the modified macro in that form :
<<frdmacro argument after:'afterFunction'>>

I've added in the code something like :

var fct=getParam(params,"after");  // to get the name of the function
to be called.

and before the end of the macro code :

eval(fct).call(this,title); // the function has one arg : the title of
the tiddler, which is in the variable title

Is it the right way to implement this kind of "after-function" ? Or am
I missing somethiong in javascript ?

Thanks in advance for your advices !

FrD

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