I think we are approaching the barrier between "keen user" and developer. Keen user would like a the learning curve associated with using TW to develop in a similarly pleasant manner onto the foothills of Javascript so that Keen User can begin to become more of a developer.
I think Tobias has addressed this: sadly its not as simple as Keen User would like. Some of the design decision associated with TW makes an ordinary Javascript course having little value. There are coding conventions in TW which to the beginner JS programmer may find puzzling. For example in Tobias' example plugin we have a line which says "tid = tid" var tid = tid I think there is a demand for learning JS in the TW way for "Keen Users" -- I'd include myself in this. Could there be a "learning group" decicated to upskilling people who might be able to use a macro into people who can begin to learn JS in the TW way? best wishes Alex On 21 January 2015 at 14:32, Tobias Beer <[email protected]> wrote: > From the gentleman who brought this bit of code: >> > > There's a mild difference. > This thing is not designed to run in the context of a page. > It's intended for a browser to just run it. > > But yes, you are absolutely right, if the core of TiddlyWiki were to > change, > it would be an awful endeavour to fix starting this bookmarklet based on > that url encoded nastiness it is. > Actually, a bookmarklet should be provided with a version in the title. > > I'm not sure, though, that you answered Mat's question: >> > How do I integrate a javascript into TW? >> > > I think I mentioned: *modules* > > At least, that seems to be the official answer. > Although, I would personally prefer something else. > But I do understand that it's a safe choice. > > Nothing requiring a modification of the <body> element such as <body >> onload="dynAnimation8()"> will work. >> > > There shouldn't be code that requires you to do that and if there is, it's > from the dark ages. > > >> Nothing that uses a OnClick= like "<input type="button" value=" 1 " >> onClick="head1()">" will work because TW with its security concerns strips >> away the "OnClick." >> > > Same thing, it's simply no longer how you bind functions to events > ...unless you want to keep doing it that way, > which will not be supported in TiddlyWiki, by default. > > >> Nothing that requires the script to be located at a specific location >> > such as immediately after a textarea will work. >> > > You an write code that does just that, only you will have to wrap it in a > module > and figure out the appropriate way to bind it to that textarea. > > >> JavaScripts that can be completely contained in the <head></head> section >> and interact with named elements or windows components may work. >> > Scripts that are stored in the <head></head> section can be handled in TW >> by giving the tiddler the tag "$:/tags/RawMarkup" > > > including a 3rd party library @ dev5 > <http://dev5.tiddlyspot.com/#including%20a%203rd%20party%20library> > > Javascripts that can be completely self contained like Tobias' Console Log >> Of Tiddler Sizes may work. >> > > It's actually not so self-contained in that it relies upon core functions > of TiddlyWiki to actually do its thing. > > >> You can invoke a javascript by using the same trick Tobias used in the >> bit of code above by entering <a href="javascript:head1()">Click here >> for javascript head1</a>. You can use this, sometimes, to get around the >> OnClick restriction. >> > > It looks like this won't be available for too long... > > https://github.com/Jermolene/TiddlyWiki5/issues/1350 > > I sure hope that this ticket will be implemented in a way that you do get > an option to activate it. > > >> If a task is possible using TW systems and components, then do it that >> way. >> > If you're going to play with Javascripts and TW, then do lot's of backups. >> > > ...and use your browser console, a decent text-editor, version control, > etc... > > Best wishes, Tobias. > > -- > 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. > -- 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.

