N.B.:
Strictly development-related issues are better discussed on the dev group:
http://groups.google.com/group/TiddlyWikiDev/
You're more likely to get competent help there.
> would the following work to bring a javascript into the current page?
> $.twFile.load(<local path to a *.js file>);
> $.twFile.init();
That alone would not suffice, as you'd only be loading the file contents
into a variable (although your sample code is missing the variable
assignment) without actually evaluating the code.
If you just want to dynamically load JavaScript files, try the following:
var filePath = "..."; // relative or absolute URI
jQuery('<script type="text/javascript">').attr("src", filePath).
appendTo(document.body);
However, if you're loading TiddlyWiki plugins there, you might run into
load-order and variable-scope issues with some of them. (See the
previous discussions on this subject.)
-- F.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---