I encountered the same problem and solution in writing my first javascript 
macros.  I have now come across another difficulty which may also be 
related to the layering of features that Jeremy described.

Jeremy: am I interpreting correctly that your bullet list indicates the 
order in which the features are processed, but last first in your list?  
Thus, the transclusion is only processed after the non-widget <<>> style 
macro invocation?

My problem is that I am trying to use a macro to generate an 
<$action-setfield> widget, where the $value parameter is calculated by my 
macro. If I put my macro inside a <$button> widget, the action doesn't get 
activated by the button, which makes sense if widgets are processed before 
macros.  The odd thing is that if I also ask the macro to generate the 
<$button> widget, the action *does* get activated in the way I intended 
when I click the button.  Since I am trying to generate many $action 
widgets inside the same $button, it would be much neater if the first 
method worked, to avoid having to write out lots of repeated widget text or 
pass dozens of parameters to the single macro.  Is there a way round this?

Thanks,

Neil.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to