On Sunday, March 16, 2014 6:24:40 PM UTC-7, skye riquelme wrote:
>
> I have a tiddler that contains a macro..or two....for example Erics 
> LoadTiddlers...... when I open this tiddler it clearly ...well Loads the 
> Tiddlers....great.
> Now If I open that tiddler from inside a popup (Erics ShowPopupPlugin), it 
> does not activate the LoadTiddlers macro. 
> I have other tiddlers that contain straight javascript...and that is 
> processed when opened in a popup....but macros dont!!!
> Is there some way to have the macros activate when in a popup? Or how can 
> I use javascript to active the macro......how to use javascript rather than 
> the macro syntax?
>

ShowPopupPlugin "wikifies" all the content from the referenced tiddler, so 
there's no reason that I can think of why the macro wouldn't be invoked.

In any case, if you want to try using a direct javascript call, try this:

var src="filename.html";
var doImport=false;
var flags={
   quiet:true, ask:false, filter:"...", force:false, init:false,
   nodirty:false, norefresh:false, noreport:false, autosave:false
};
config.macros.loadTiddlers.newTags=["tag","tag",...];
config.macros.loadTiddlers.loadFile(src,doImport,flags);


Set the parameters (src, doImport, flags, newTags) to your desired values 
just as you would in the macro call.  That should do it.

let me know how it goes...

P.S.   please remember to put [TWC] in your subject heading!

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

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