Hiya Matthew There's no support for inline JavaScript in TW5. The trouble with inline JavaScript is that it means that wiki content can be potentially dangerous. I might import a tiddler from another wiki without realising that it contains fragments of JavaScript that steal my data. Instead you can create tiddlers that are explicitly marked javascript modules.
There's a deeper issue, which is that TW5 works by dynamically rewriting the DOM as required in response to changes in the values of tiddlers. That means that ordinary jQuery techniques that rely on storing state data within the DOM will not work reliably because the DOM can be blasted and recreated at any time. Having said that, right now TW5 doesn't "blacklist" the bits of HTML that allow embedded JS, so you can currently include script tags within a tiddler, and event handler properties on HTML elements. Feel free to experiment, but do bear in mind that I intend to close off those gaps soon. Best wishes Jeremy On Fri, Nov 29, 2013 at 5:40 AM, metaltailz <[email protected]>wrote: > Hello all, > > Just two quick questions, how can I go about executing Javascript within a > tiddler? Namely I want to create a form with a submit button that once > pressed will create one or more tiddlers based on the values in the forms. > Some of the processing I have in mind would be a lot easier with access to > jQuery methods such as getJSON(). > > Thanks for any help! > > -- > 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. > -- Jeremy Ruston mailto:[email protected] -- 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.

