[tw] parameters to a button
Say I need the name of a tiddler in the event function of createTiddlyButton: config.macros.suggestTags.handler = function (place,macroName,params,wikifier,paramString,tiddler) { [...] createTiddlyButton(place, this.label, this.prompt, function () { // HERE I WANT THE NAME OF THE TIDDLER. I.E. tiddler.title, BUT IT'S OUT OF SCOPE [...] }; , button, buttonMagic, null, par); } -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: find open tab using tabs macro
In the end, I have something like that: which works only if I have one tiddler with tabs. As soon as I get two, this fails... Any ideas? It fails because 1) I don't know how best to catch values in the function that belongs to the button. So if you press the button, the only way (I have) to know which button this is coming from is through the ID of the button. This is hard-wired as buttonMagic so, if another tiddler has a button with ID buttonMagic, this fails. 2) I think there will be another problem because at the minute if two tiddlers are using the tabs, I believe they will overwrite each other's cookie. [...] config.macros.doSomething.handler = function (place,macroName,params,wikifier,paramString,tiddler) { var par= { tiddler_title: tiddler.title } createTiddlyButton(place, this.label, this.prompt, function () { [...] var _sug = document.getElementById(buttonMagic).attributes; var query=store.getTiddlerText(tabNameFromTabLabel(_sug.getNamedItem(tiddler_title).value, config.options.txtMyTabs)); [...] }, button, buttonMagic, null, par); } // return the actual tiddler NAME not the LABEL on the tab function tabNameFromTabLabel(title, label) { if(label == My Label) { return title+_mylabel; } [...] } -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: find open tab using tabs macro
Sort of solved the issue for now. There is now one cookie per tiddler that has the tab (the name is built from a fixed prefix, and the suffix is the title of the tiddler). This means that I can get the open tab for the tiddler which had its button clicked. It does not look very nice, but it works. config.macros.doSomething.handler = function (place,macroName,params,wikifier,paramString,tiddler) { var par= { tiddler_title: tiddler.title } createTiddlyButton(place, this.label, this.prompt, function () { [...] var _sug = document.getElementById(buttonMagic).attributes; var tiddler_title = _sug.getNamedItem(tiddler_title).value; var open_tab=; for(i in config.options) { if(i.match(tiddler_title+$)==tiddler_title) { open_tab=config.options[i]; } } var query=store.getTiddlerText(tabNameFromTabLabel(tiddler_title, open_tab)); [...] }, button, buttonMagic, null, par); } // return the actual tiddler NAME not the LABEL on the tab function tabNameFromTabLabel(title, label) { if(label == My Label) { return title+_mylabel; } [...] } -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: find open tab using tabs macro
Thank you, I have tried and that is great, I wish I could use the tab name (i.e. the tiddler title) as opposed to the label. But at least that will get me out of the woods for now. so thank you thank you thank you -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] find open tab using tabs macro
I have a tiddler that uses the core tabs macro. I want to write a macro, running in the same tiddler, or running from another tiddler, that retrieves the label, and content of the current tab. I don't know how it's done. Cheers -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] jQuery animate
Does anyone know why this jQuery animation from: http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_animation does not work in tiddlywiki? http://xmobile.labs.osmosoft.com/recipes/default/tiddlers.wiki#testWhoop Thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: tiddler array sorted by field
Before I forget, is there a way to adapt the sort to numerical values. Cheers -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: dynamic menu
It should work now. The menu on the left is a reflection of the tiddlers that are there with the right tags. I do use a master tag, however, I would have preferred if the tags were search keywords, and so, I would make use of fields as hidden meta information. I think people understand tags to be for searching. I might have to do that in the end. Thanks for the suggestions. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] tiddler array sorted by field
I have the following config.macros.bullet.handler = function(place, macroName, params, wikifier, paramString, tiddler) { var levA=params[0]; var ecbt=params[1]; var tids=store.getTaggedTiddlers(levA, ecbt); ... I call this from a tiddler using its macro name: bullet tagName fieldName I would like tids to be an array of tiddlers sorted by the field name. I get the array, but not sorted. Sorry if this has been beaten to death, I just could not find the answer... -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] dynamic menu
I want to use the dropdownmenuplugin a bit dynamically. http://xmobile.labs.osmosoft.com/recipes/default/tiddlers.wiki#[[Test%20Menu]] I have writen a macro that wikifies bullet points in the way I want. I would then want these bullet points to render in the right way (the dropdownmenuplugin way) with all the CSS I designed for this plugin of course. the macro is fairly straightforward http://xmobile.labs.osmosoft.com/recipes/default/tiddlers.wiki#BulletMacro Only the last item renders with the CSS style, the rest does not. Any suggestions? -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Dynamic menu update
I am looking for pointers here. I want a main menu that updates automatically when some Tiddlers (identified by a specific field) appear (they are being pushed through the TiddlyWeb http interface). So, the idea is for these Tiddlers to feature in the (dynamic) menu. I am looking at modifying this: http://www.TiddlyTools.com/#MatchTagsPlugin But before I go about doing this I was wondering if anyone has got a better idea, or plugin... Many thanks Cheers -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Including tiddlers under some tabs
On 3 July, 09:35, PMario pmari...@gmail.com wrote: Hi, Did it do the trick? I had a short look at you TW. It seems to me, that a little bit more is needed, to do what you need. -m Well, the site is far from finished now. So, The system macro will do the trick for now. Thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: Including tiddlers under some tabs
how typical -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] Re: TiddlyWiki Objects and Functions
perhaps you mean: http://www.TiddlyTools.com/insideTW YES!!! S great, and yet sooo hard to Google... many thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
[tw] TiddlyWiki Objects and Functions
Hi, In the past I found a web site that allowed you to put the name of a TiddlyWiki object or the name of a core TiddlyWiki function and it would pull, for an object all its function, and for a function, its object and sister functions. Has anyone got a link to this page. I have been searching for quite some time now... cheers -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To post to this group, send email to tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.