Hi Jeremy I agree that there are benefits to separating JavaScript and wikitext. However, since your "temporary" suggestion is already working, would you consider leaving it in place as an option that could be set? Perhaps it's just my position on the learning curve, but I'm finding quite helpful to be able to still make use of JavaScript.
Regards, Hans On Saturday, December 28, 2013 1:07:49 PM UTC-5, Jeremy Ruston wrote: > > Hi Okido > > Widgets are the components that encapsulate DOM access in TiddlyWiki5. > Chris Hunt has written a useful guide to writing widgets as part of his > guide to coding for TiddlyWiki5: > > http://cjhunt.github.io > > I don't intend to support anything like the inline javascript plugin > within TW5. I believe that JavaScript and wikitext should be more strictly > separated, to ensure that content can be safely shared. Having said that, > right now TW5 does nothing to prevent inline JavaScript. Try creating a new > tiddler and inserting this: > > <script type="text/javascript">alert("foo");</script> > > But it's not guaranteed to work in the future. > > Best wishes > > Jeremy > > > > On Thu, Dec 26, 2013 at 12:44 PM, okido <[email protected] <javascript:>>wrote: > >> Season's Greeting to All, >> >> Today I tried to make a start with moving some of my TWc to TW5. >> In TWc I use inlinejavascript plugin to build graphs straight into an SVG >> element that is appended to .viewer the DOM. >> Essentially the code to build the graph is stored in a tiddler and the >> data for the graph in an other tiddler, styling is done trough css in a >> separate tiddler. >> This makes it very easy to copy and improve etc. I use d3, crossfilter, >> flot or jsx. >> I tried a macro today and this could be working but before exploring this >> further I would like to now how you would approach this? >> >> Best regards, Okido >> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/tiddlywiki. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Jeremy Ruston > mailto:[email protected] <javascript:> > -- 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.

