Re: [tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2015-02-06 Thread Jimmy Armand
Run the macro > */ > exports.run = function() { > $tw.config.htmlUnsafeElements = "script".split(","); > return ""; > } > })(); > > > > then use in a tiddler like this > > <> > > alert("Hooray"); > > &

Re: [tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2015-02-06 Thread Jimmy Armand
Thanks Will try this today On Thursday, 29 January 2015 15:12:01 UTC-5, Tobias Beer wrote: > > While having no plans of using this (yet), > however, seeing how that cat is out of the box anyhow, > here's a single *script* macro to toggle

[tw] Re: Why is my ButtonWidget does not talk my variable???

2015-02-06 Thread Jimmy Armand
lol. No it is not a secret. I'm glad if I can help. Here's how I managed to make it work: <$select field='selected-template' class="medium-width padding"> <$list filter="GCNETTemplate ACCESSTemplate COGETemplate"> <> <$set name="mytemplate" value={{!!selected-templat

Re: [tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2015-01-29 Thread Jimmy Armand
Sorry but I'm not sure to understand what you mean. Is it that there's a parameter named script that will help me do what I want? Because in the config.js, there's no "script" configuration to be found. On Wednesday, 28 January 2015 19:12:02 UTC-5, Tobias Beer wrote: > > It's not hard to find. I

Re: [tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2015-01-29 Thread Jimmy Armand
le code. > > Obviously, these aren't concerns for many users who are working privately. > We can serve their needs with a plugin that explicitly enables inline > JavaScript, but it's not something that will ever be supported directly by > the core. > > Best wis

Re: [tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2015-01-28 Thread Jimmy Armand
de. > > Obviously, these aren't concerns for many users who are working privately. > We can serve their needs with a plugin that explicitly enables inline > JavaScript, but it's not something that will ever be supported directly by > the core. > > Best wishes > &g

[tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2015-01-28 Thread Jimmy Armand
Yeah but I think that this method is not really nice since I want to put the javascript in a tiddler (text/vnd.tiddlywiki) On Wednesday, 28 January 2015 06:44:47 UTC-5, Stephan Hradek wrote: > > Go to tiddlywiki.com > > Create a New Tiddler > > Paste this into the tiddler: > > > alert("Hooray");

[tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2015-01-28 Thread Jimmy Armand
In fact what would be nice is to be able to import javascript directly in the tiddler, like we can do with the tags. With css it's easy: Create a tiddler put your css et voilĂ  The same would have been nice (a major nice to have IMO) to have On Tuesday, 27 January 2015 14:43:24 UTC-5, PMario wr

[tw] Re: Why is my ButtonWidget does not talk my variable???

2015-01-27 Thread Jimmy Armand
I figured it out. thanks On Tuesday, 27 January 2015 14:05:45 UTC-5, Jimmy Armand wrote: > > So I was assuming that GCNETTemplate 1, ACCESSTemplate 1 or COGETemplate > 1 would have been created base on my selection. But instead I have a > template based on the default template

[tw] Re: Why is my ButtonWidget does not talk my variable???

2015-01-27 Thread Jimmy Armand
So I was assuming that GCNETTemplate 1, ACCESSTemplate 1 or COGETemplate 1 would have been created base on my selection. But instead I have a template based on the default template titled: New Tiddler On Tuesday, 27 January 2015 13:57:22 UTC-5, Alberto Molina wrote: > > Hi Jimmy, > > the button

[tw] Re: Why is my ButtonWidget does not talk my variable???

2015-01-27 Thread Jimmy Armand
Sorry for not being clear. What I want to do is having all templates listed in a select widget. Based on the selection made, when I push the button, the corresponding templates (tiddler) is created. A bit like the task example but since I have many Templates to choose from, I put them in a selec

[tw] Why is my ButtonWidget does not talk my variable???

2015-01-27 Thread Jimmy Armand
Hi all! Another question ! I have the following select wich works since I can see the result: <$select field='selected-template'> <$list filter="GCNETTemplate ACCESSTemplate COGETemplate"> <> <$set name="mytemplate" value={{!!selected-template}}> ''Result: ''<> <$list filter="[]">

[tw] Re: Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2015-01-27 Thread Jimmy Armand
K. Thx. I will go with the Editable-Tables On Tuesday, 27 January 2015 09:52:53 UTC-5, Stephen Kimmel wrote: > > Jimmy, > > The $Macrocall is the main pathway to a complex javascript. When I did my > marathoning tiddler, I used a number of different ways of creating tables > using the $macrocall

[tw] Simple Javascript insertion in tiddlers (text/vnd.tiddlywiki)

2015-01-27 Thread Jimmy Armand
Hi, I've been playing with tiddly wiki for about a week now and let me say that it is really great! But something simple I want to do but I cannot manage to find how to do it: Insert Javascript into a tiddler. What I want to do is use jquery datatable on a table I've created. First, I've put th