Hi ! I'm considering the migration of some of my TWcs to TW5. When I began using TWc I quickly understood that I could extend its capabilities if I could learn javascript. So I had to dive in javascript and it was not easy for me but it was fun (still is !).
I then made an extensive use of InlineJavascriptPlugin from Eric Shulman (http://www.tiddlytools.com/) and even wrot some plugins. Some tiddlers in my TWcs include text, tables, ... and scripts. Some tiddlers are repositories for scripts and I use these scripts with transclusion in other tiddlers (for instance <<tiddler RepositoryTiddler##Script1>>). I understand that TW5 widgets will solve at least 80% of my problems with scripts (with some re-engineering ...). But I believe there could be some use for some specialized scripts in TW5 : - in some cases the wikitext expression with widgets and/or filters can be very complicated, as much as or more than a javascript expression, - I sometimes use some elementary math with data inside a tiddler. I'm not aware of tools in TW5 that allow some calculus with tiddler fields, but it could be a lack of understanding from me. In TWc I get the values from the fields or the data objects, use parseInt() or parseFloat(), do the math and put the values back in fields (or data objects). Although I know it's not quite the positioning Jeremy wants for TW5 (and I mostly agree with him) I would be delighted to be able to insert some simple scripts in a tiddler, some kind of a port of InlineJavascriptPlugin as a widget. This widget could be (or not) triggered by a button, and have at least one attribute : the javascript code. <$javascript code="here comes the code or a the transclusion of a tiddler containing javascript code ..." /> The widget could access some elements like currentTiddler and others (?) (just like the "place" variable, which is a DOM element, is accessed in TWc), and use some internal functions of TW5 (even some functions defined by widgets ?) It could also be "sandboxed" and have only limited acces to the internals of TW5 ... Maybe Eric is already working on this -:). What do you think ? Thanks in advance for your comments. FrD -- 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/groups/opt_out.

