> There are several ways you could do this. > For example, you could just put the respective SCRIPT tag into the > MarkupPreHead shadow tiddler: > http://tiddlywiki.org/wiki/MarkupPreHead
Note: this will load the external library at startup, *before* the TW core code is initialized > Or you could inject the SCRIPT tag dynamically: > http://github.com/fnd/jsutil/blob/master/loadScript.js > Even simpler with jQuery (included since TiddlyWiki 2.5): > var uri = "http://www.google.com/jsapi"; > jQuery('<script type="text/javascript">').attr("src", uri). > appendTo(document.body); Note: assuming the above code is invoked in a plugin, this will load the library at startup, *after* the TW core code is initialized There is a third option: http://www.TiddlyTools.com/#InlineJavascriptPlugin which support embedding of <script src="http://..."></script> directly within tiddler content, so that an external library can be loaded "on demand" only when specific tiddler content is rendered. enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

