[tw5] Re: [tw] how to use javascript in TW5

2018-05-18 Thread Paul Netsaver
OK PMario, thanks for the information. By the way, the 'plusminus' was just an example. In another envornment (dokuwiki) I used markdown for automatic text to html processing. Then I used javascript to extend functionalities. Reference to js modules in dokuwiki could be placed in the template,

[tw5] Re: [tw] how to use javascript in TW5

2018-05-17 Thread PMario
Hi, On Wednesday, May 16, 2018 at 10:14:33 PM UTC+2, Paul Netsaver wrote: > moreover... are JS macros processed from the browser, after the final > tiddlywiki html conversion or are they a sort of 'tiddlywiki middleware'? > Macros are more like "text substitusions" used by endusers. If

[tw5] Re: [tw] how to use javascript in TW5

2018-05-16 Thread Paul Netsaver
Hi, I've managed to create a JS macro and run it from inside tiddlers. Anyway I'ld like to create an 'autoexecuting' JS macro, in order to apply it to all tiddlers (or maybe to specifically tagged tiddlers) without making a call from each tiddler. Think to a text replacing macro intercepting a

Re: [tw] how to use javascript in TW5

2017-03-21 Thread Dave
wait, you can make widgets? I thought you could only make macros... time to read some more. -- 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

Re: [tw] how to use javascript in TW5

2017-03-21 Thread Sven Wetzel
Hello Dave, I think you must create a widget, that creates a button with the click event listener on it. Or if you want it as macro you can try this with my SPilot4TW (https://www.quaraman.de/tw/pilot.html): |\define myfunctionbutton(text:"hello world!")|| ||LOOP:|| ||PAUSE: Try it||

[tw] how to use javascript in TW5

2017-03-21 Thread Dave
Is there a tutorial somewhere that would teach me how to take this javascript code Click the button to convert the string to lowercase letters. Try it function myFunction() { var str = "Hello World!"; var res = str.toLowerCase(); document.getElementById("demo").innerHTML =