[tw] Re: Question regarding createTiddlyButton function

2011-10-06 Thread PMario
insideTW [1] is a good resource to start searching. You can search with Erics great search box, and get an info how to call the function. eg; createTiddlyB ... you are there allready. createTiddlyButton = function createTiddlyButton(parent, text, tooltip, action, className, id, accessKey,

[tw] Re: Question regarding createTiddlyButton function

2011-10-05 Thread whatever
Hi, Mario, I had in fact looked at your plugins and even considered using them, but my JS wasn't quite up to it then. I may in fact use your plugins as a template in the future, but I first need to figure out the createTiddlyButton function (which is also used by your plugins :)). Once that works,

[tw] Re: Question regarding createTiddlyButton function

2011-09-30 Thread Tobias Beer
Could you post the whole thing (into a pastebin for readability) and not just the stuff around createTiddlyButton? Because there are some ltr and listnsf and we have no idea what those refer to. Cheers, Tobias -- You received this message because you are subscribed to the Google Groups

[tw] Re: Question regarding createTiddlyButton function

2011-09-30 Thread whatever
Hi! I posted the code on Pastebin (1). The original script is on TiddlySpot (2). The inital error is because this tiddler is transcluded by various ViewTemplates. (1) http://pastebin.com/1h9kUNqP (2) http://tiddlymarks.tiddlyspot.com/#AddTagsScripts w On Sep 30, 9:31 am, Tobias Beer

[tw] Re: Question regarding createTiddlyButton function

2011-09-30 Thread whatever
I suppose I should mention that the script is used by the Change folder and Change group buttons. You can see them in action by clicking on any folder in the Bookmarks or Groups trees on the left (except the root Groups folder), in the Favorites folder or when viewing link tiddlers directly. w On

[tw] Re: Question regarding createTiddlyButton function

2011-09-30 Thread PMario
Hi whatever, I did several example plugins [1] that exactly show, how to create buttons and use them as macros or within Templates. Inline script plugin is great, for fast prototyping and proof of concept. But I think, you should start to create TW plugins. Have a look at them in this order:

[tw] Re: Question regarding createTiddlyButton function

2011-09-29 Thread Tobias Beer
Hi Whatever, I believe you should not be using any string concatenation in your add function. Cheers, Tobias. On 28 Sep., 10:21, whatever kbrezov...@gmail.com wrote: Hi! In order to create buttons with scripts I use the wikify function with script.../script. This often includes a lot of

[tw] Re: Question regarding createTiddlyButton function

2011-09-29 Thread whatever
You're right of course, there's no need for it, since it's not inside a wikify anymore. Unfortunately, it still doesn't work. w On Sep 29, 7:55 pm, Tobias Beer beertob...@googlemail.com wrote: Hi Whatever, I believe you should not be using any string concatenation in your add function.