[tw] Re: simple charts
Hi Wolfbite, With the raphael 0.40 version you could import the g.line-min.js as a tiddler, tag it with systemConfig, save and reload that is the whole process. You might also have a look here http://d3tw.tiddlyspot.com/. The charts/graphs at d3tw require d3 and a graphing lib of your choice, at moment it is c3 or nvd3. You have to write some little code with the use of the InlineJavascriptPlugin, but this is easy to do. If you need more instructions please do use this group. Have a nice day, Okido 2014年5月19日月曜日 14時53分29秒 UTC+2 wolfbite: Hi people, first post so forgive me if I do it wrong I want to do some basic charts (line) like http://charts.tiddlyspace.com/ but generate macro error with latest classic TW (want to stay with the older for now) which used DmitryBaranovskiy/g.raphaelhttps://github.com/DmitryBaranovskiy/g.raphael 2010 found https://github.com/jdlrobson/g.raphael seems to be 2014 forked from above can anyone instruct how to update the ie g.bar.js g.pie.js etc else point me to some other charting options for tiddlywiki -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TWC] Right way to make a Javascript function available throughout a TW?
Hi Antaeus, The most basic form is: function simpletest(){ return false; }; Past this code in a tiddler and tag with systemConfig, save and reload. Have a nice day, Okido 2014年5月18日日曜日 23時48分58秒 UTC+2 Antaeus Feldspar: Suppose that I have a Javascript function that I want to be available throughout the Tiddlywiki, for plugins that can use Javascript code (in this case, ForEachTiddlerPlugin) to employ. What is the correct method to do it? I thought that the correct method was to add the code to MarkupPostHead. The following was what I added there, just to test that I had that part right: script type=text/javascript function simpletest() { return false; } /script To test it, I also made a copy of a call to the ForEachTiddler macro that was working, and prefixed simpletest() to an existing boolean expression the macro call was using. The result was that when I attempted to reload the Tiddlywiki, it would not load at all. What did I do wrong? -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TWC] Right way to make a Javascript function available throughout a TW?
Hello Antaues, For being short, I'll just add that you can define methods via plugins (and use the Require slice in other plugins, if those methods are needed at the startup): definition (in a plugin MyLib): config.extensions.myObject = { myMethod1: function(...) { ... }, myMethod2: function(...) { ... } } usage (after startup -- like in the fet macro): config.extensions.myObject.myMethod1(...) to use in a plugin (this line makes the plugin be launched after MyLib, if it is present): |Requires|MyLib| If you prefer to use MarkupPostHead anyway (which would seem strange), check the working approach of Plugin: jsMath [1]. Best regards, Yakov. [1] http://bob.mcelrath.org/tiddlyjsmath.html вторник, 20 мая 2014 г., 15:34:17 UTC+4 пользователь okido написал: Hi Antaeus, The most basic form is: function simpletest(){ return false; }; Past this code in a tiddler and tag with systemConfig, save and reload. Have a nice day, Okido 2014年5月18日日曜日 23時48分58秒 UTC+2 Antaeus Feldspar: Suppose that I have a Javascript function that I want to be available throughout the Tiddlywiki, for plugins that can use Javascript code (in this case, ForEachTiddlerPlugin) to employ. What is the correct method to do it? I thought that the correct method was to add the code to MarkupPostHead. The following was what I added there, just to test that I had that part right: script type=text/javascript function simpletest() { return false; } /script To test it, I also made a copy of a call to the ForEachTiddler macro that was working, and prefixed simpletest() to an existing boolean expression the macro call was using. The result was that when I attempted to reload the Tiddlywiki, it would not load at all. What did I do wrong? -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin
Hello Albert, I see, take your time and good luck :) Health to the boy! понедельник, 19 мая 2014 г., 15:14:12 UTC+4 пользователь Albert Riedinger написал: Hello Yakov, I'm very sorry for my delayed answer, but I'm currently very busy (waiting for birth of my son in the next few days :) Thank you for all your tips and tweaks, but currently, I don't have the time to work on a new release (but worked on a rewrite of my plugin about 2 weeks ago v0.3 [not published yet]) or answer all your questions in a detailled way. But I promise to get back in a few weeks ... I hope so :) Right, I hope you'll incorporate my tweaks in the future versions, so I wouldn't need to change the plugin each time ;) ... |+flag+([^\\x00-\\xff]*)$ ... is a part of the original[1] regexp (see also [2]). I guess it is not required because removing it doesn't make any difference. But I'm not really sure. Hope that helps a bit. Ok, I'll take a look at this. Best regards, Albert [1] https://github.com/ichord/At.js/blob/master/dist/js/jquery.atwho.js#L657 [2] http://regex101.com/r/lN2wG9 2014-05-16 23:21 GMT+02:00 Yakov yakov.litv...@gmail.com javascript:: Hello Albert, I've stubled upon an issue -- when AutoSuggestPlugin is included (eval'ed without importing) via SharedTiddlersPlugin [1], the styles are not applied -- and made a quick fix for it: added the refreshStyles(StyleSheetAutoSuggest); line before the store.addNotification(StyleSheetAutoSuggest, refreshStyles); line, which seems to be worth including in the main plugin. Also, in my tweaked version, I've substituted the chars with the [^\\|\\n\\]] thing, but didn't get what ([^\\x00-\\xff]*) stands for, so could you point what's the purpose of this piece (so that I can turn it into some more readable RegExp? For the reference, I attach my tweaked snapshot of the plugin. Best regards, Yakov. [1] http://yakovl.bplaced.net/TW/STP/STP.html среда, 16 апреля 2014 г., 0:47:59 UTC+4 пользователь Albert Riedinger написал: Today I worked out a temporary solution for pretty links, so it is possible now to type [[SOME_LABEL| which gives you tiddler title suggestions. It was a tough nut to crack for a regex newbie like me, but it works :) Try it out and have fun[1]! Albert [1] http://autosuggest.tiddlyspace.com/#AutoSuggestPlugin -- 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 tiddlywiki+...@googlegroups.com javascript:. To post to this group, send email to tiddl...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin
Ok, here's what I think: now we have this RegExp: regexp = new RegExp(flag+([^\\|\\n\\]]*)$|+flag+([^\\x00-\\xff]*)$, gi); and this use of match: return match[2] || match[1]; As this is two alternative matches and my [^\\|\\n\\]] version is general enough, looks like the second part may be omitted like this: regexp = new RegExp(flag+([^\\|\\n\\]]*)$, gi); and return match[1]; I'll let you know if this causes any side-effects in tests, but it shouldn't. Best regards, Yakov. вторник, 20 мая 2014 г., 15:55:52 UTC+4 пользователь Yakov написал: Hello Albert, I see, take your time and good luck :) Health to the boy! понедельник, 19 мая 2014 г., 15:14:12 UTC+4 пользователь Albert Riedinger написал: Hello Yakov, I'm very sorry for my delayed answer, but I'm currently very busy (waiting for birth of my son in the next few days :) Thank you for all your tips and tweaks, but currently, I don't have the time to work on a new release (but worked on a rewrite of my plugin about 2 weeks ago v0.3 [not published yet]) or answer all your questions in a detailled way. But I promise to get back in a few weeks ... I hope so :) Right, I hope you'll incorporate my tweaks in the future versions, so I wouldn't need to change the plugin each time ;) ... |+flag+([^\\x00-\\xff]*)$ ... is a part of the original[1] regexp (see also [2]). I guess it is not required because removing it doesn't make any difference. But I'm not really sure. Hope that helps a bit. Ok, I'll take a look at this. Best regards, Albert [1] https://github.com/ichord/At.js/blob/master/dist/js/jquery.atwho.js#L657 [2] http://regex101.com/r/lN2wG9 2014-05-16 23:21 GMT+02:00 Yakov yakov.litv...@gmail.com: Hello Albert, I've stubled upon an issue -- when AutoSuggestPlugin is included (eval'ed without importing) via SharedTiddlersPlugin [1], the styles are not applied -- and made a quick fix for it: added the refreshStyles(StyleSheetAutoSuggest); line before the store.addNotification(StyleSheetAutoSuggest, refreshStyles); line, which seems to be worth including in the main plugin. Also, in my tweaked version, I've substituted the chars with the [^\\|\\n\\]] thing, but didn't get what ([^\\x00-\\xff]*) stands for, so could you point what's the purpose of this piece (so that I can turn it into some more readable RegExp? For the reference, I attach my tweaked snapshot of the plugin. Best regards, Yakov. [1] http://yakovl.bplaced.net/TW/STP/STP.html среда, 16 апреля 2014 г., 0:47:59 UTC+4 пользователь Albert Riedinger написал: Today I worked out a temporary solution for pretty links, so it is possible now to type [[SOME_LABEL| which gives you tiddler title suggestions. It was a tough nut to crack for a regex newbie like me, but it works :) Try it out and have fun[1]! Albert [1] http://autosuggest.tiddlyspace.com/#AutoSuggestPlugin -- 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 tiddlywiki+...@googlegroups.com. To post to this group, send email to tiddl...@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] TW5 include external js/css in meta area
Hi, I want to include my external library in TW5, however, everytime I save TW, it overrides my script reference in the html code. the code is inserted by me manually inside the head tag script src=js/jquery-1.9.1.js type=text/javascript/script script src=js/my.js type=text/javascript/script link href=css/my.css rel=stylesheet type=text/css / ... any ideas how to solve it? many thanks! -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: TW5 include external js/css in meta area
Can't you put it into a tiddler? http://tiddlywiki.com/#Using%20Stylesheets:[[Using%20Stylesheets]] For JavaScript I suggest to create a plugin or macro. jQuery I wouldn't include like that. I think it will lead to problems in the long run, but @Jeremy or @Mario could answer this better I think. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Problem mixing leftmenu and default tiddlers
Hi Dave, I don't know if you upgraded from a working TW5.010-beta, but I have seen a few 'strange' things when upgrading (from the kind of to be published in the Journal of Irreproducible Results ;-) ). Did you try importing your judas.html into an empty TW5.0.12-beta? I downloaded your TW and imported it into an empty TW5.0.12-beta and switched of permalink/permaview (otherwise DefaultTiddlers does not make much sense). As far as I can see, now it works: it opens 'Instrucciones' on start-up. Cheers, Ton On Monday, May 19, 2014 4:49:18 PM UTC+2, David Gifford wrote: Hi everyone This doesn't seem to be a bug of TW5 but something I may have done wrong. I know that never happens, but there is a first time for everything, right? The following file: http://www.giffmex.org/experiments/judas.html has a default tiddler called 'Instrucciones'. But it doesn't appear on the screen at startup. However, if you open any other tiddler (in this case you can do so by clicking the E or the P in the top right corner), then close that tiddler, the default tiddler will then appear. The default tiddler is like a disappearing then suddenly appearing tiddler. The navigation bar gives the following URLS http://www.giffmex.org/experiments/judas.html - at startup http://www.giffmex.org/experiments/judas.html#%24%3A%2F_leftmenu - after opening a tiddler $:/_leftmenu http://www.giffmex.org/experiments/judas.html# - after closing that tiddler, which suddenly reveals the default tiddler. Trying the same in an empty TW5 works as it should. My problem seems to have something to do with the leftmenu, or else something else I screwed up. Any ideas as to how I can fix this? I would like to have my TW set up so that upon startup, the user views the leftmenu and the default tiddler, and the right sidebar is hidden by default until opened. I also want the navigation bar to only show the current tiddler, not all open tiddlers. Despite this hiccup, I am pretty excited about 5.0.12. I am at the point now where I will be able to use TW5 much more freely for my Spanish materials the way I have always been hoping to do. Way to go, Jeremy and team! -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TW5] Problem mixing leftmenu and default tiddlers
Hi Ton, thanks for taking the time to look at this. I just tried doing what you described: I downloaded an empty TW5. From there I imported from my Judas file. And I turned off permalinks and permaview and hit save, and reloaded. But unlike you, I am not seeing my default tiddler of Instrucciones upon refreshing. Same thing happens in both Chrome and Firefox. On Tue, May 20, 2014 at 9:22 AM, Ton Gerner ton.ger...@gmail.com wrote: Hi Dave, I don't know if you upgraded from a working TW5.010-beta, but I have seen a few 'strange' things when upgrading (from the kind of to be published in the Journal of Irreproducible Results ;-) ). Did you try importing your judas.html into an empty TW5.0.12-beta? I downloaded your TW and imported it into an empty TW5.0.12-beta and switched of permalink/permaview (otherwise DefaultTiddlers does not make much sense). As far as I can see, now it works: it opens 'Instrucciones' on start-up. Cheers, Ton On Monday, May 19, 2014 4:49:18 PM UTC+2, David Gifford wrote: Hi everyone This doesn't seem to be a bug of TW5 but something I may have done wrong. I know that never happens, but there is a first time for everything, right? The following file: http://www.giffmex.org/experiments/judas.html has a default tiddler called 'Instrucciones'. But it doesn't appear on the screen at startup. However, if you open any other tiddler (in this case you can do so by clicking the E or the P in the top right corner), then close that tiddler, the default tiddler will then appear. The default tiddler is like a disappearing then suddenly appearing tiddler. The navigation bar gives the following URLS http://www.giffmex.org/experiments/judas.html - at startup http://www.giffmex.org/experiments/judas.html#%24%3A%2F_leftmenu - after opening a tiddler $:/_leftmenu http://www.giffmex.org/experiments/judas.html# - after closing that tiddler, which suddenly reveals the default tiddler. Trying the same in an empty TW5 works as it should. My problem seems to have something to do with the leftmenu, or else something else I screwed up. Any ideas as to how I can fix this? I would like to have my TW set up so that upon startup, the user views the leftmenu and the default tiddler, and the right sidebar is hidden by default until opened. I also want the navigation bar to only show the current tiddler, not all open tiddlers. Despite this hiccup, I am pretty excited about 5.0.12. I am at the point now where I will be able to use TW5 much more freely for my Spanish materials the way I have always been hoping to do. Way to go, Jeremy and team! -- You received this message because you are subscribed to a topic in the Google Groups TiddlyWiki group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/c-z7f-h1CAo/unsubscribe. To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- David Gifford Christian Reformed World Missions, Mexico City -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin
PS one more tweak to add: the .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, \\$); part does what .escapeRegExp(); TW String utitity is supposed to do, and for better readability, I suggest to write those lines as following: flag = flag.escapeRegExp(); One, however, should be aware, that this method is slower and is not totally accurate [1], but again, in this case it is ok. [1] https://groups.google.com/forum/#!topic/tiddlywikidev/bZOI6X-AOvU вторник, 20 мая 2014 г., 16:52:07 UTC+4 пользователь Yakov написал: Ok, here's what I think: now we have this RegExp: regexp = new RegExp(flag+([^\\|\\n\\]]*)$|+flag+([^\\x00-\\xff]*)$, gi); and this use of match: return match[2] || match[1]; As this is two alternative matches and my [^\\|\\n\\]] version is general enough, looks like the second part may be omitted like this: regexp = new RegExp(flag+([^\\|\\n\\]]*)$, gi); and return match[1]; I'll let you know if this causes any side-effects in tests, but it shouldn't. Best regards, Yakov. вторник, 20 мая 2014 г., 15:55:52 UTC+4 пользователь Yakov написал: Hello Albert, I see, take your time and good luck :) Health to the boy! понедельник, 19 мая 2014 г., 15:14:12 UTC+4 пользователь Albert Riedinger написал: Hello Yakov, I'm very sorry for my delayed answer, but I'm currently very busy (waiting for birth of my son in the next few days :) Thank you for all your tips and tweaks, but currently, I don't have the time to work on a new release (but worked on a rewrite of my plugin about 2 weeks ago v0.3 [not published yet]) or answer all your questions in a detailled way. But I promise to get back in a few weeks ... I hope so :) Right, I hope you'll incorporate my tweaks in the future versions, so I wouldn't need to change the plugin each time ;) ... |+flag+([^\\x00-\\xff]*)$ ... is a part of the original[1] regexp (see also [2]). I guess it is not required because removing it doesn't make any difference. But I'm not really sure. Hope that helps a bit. Ok, I'll take a look at this. Best regards, Albert [1] https://github.com/ichord/At.js/blob/master/dist/js/jquery.atwho.js#L657 [2] http://regex101.com/r/lN2wG9 2014-05-16 23:21 GMT+02:00 Yakov yakov.litv...@gmail.com: Hello Albert, I've stubled upon an issue -- when AutoSuggestPlugin is included (eval'ed without importing) via SharedTiddlersPlugin [1], the styles are not applied -- and made a quick fix for it: added the refreshStyles(StyleSheetAutoSuggest); line before the store.addNotification(StyleSheetAutoSuggest, refreshStyles); line, which seems to be worth including in the main plugin. Also, in my tweaked version, I've substituted the chars with the [^\\|\\n\\]] thing, but didn't get what ([^\\x00-\\xff]*) stands for, so could you point what's the purpose of this piece (so that I can turn it into some more readable RegExp? For the reference, I attach my tweaked snapshot of the plugin. Best regards, Yakov. [1] http://yakovl.bplaced.net/TW/STP/STP.html среда, 16 апреля 2014 г., 0:47:59 UTC+4 пользователь Albert Riedinger написал: Today I worked out a temporary solution for pretty links, so it is possible now to type [[SOME_LABEL| which gives you tiddler title suggestions. It was a tough nut to crack for a regex newbie like me, but it works :) Try it out and have fun[1]! Albert [1] http://autosuggest.tiddlyspace.com/#AutoSuggestPlugin -- 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 tiddlywiki+...@googlegroups.com. To post to this group, send email to tiddl...@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: TW5 include external js/css in meta area
to include code (ie your script references etc) in the header section, put the code into a tiddler and tag it with $:/core/wiki/rawmarkup. cheers BJ On Tuesday, May 20, 2014 1:56:09 PM UTC+1, Felix Küppers wrote: Hi, I want to include my external library in TW5, however, everytime I save TW, it overrides my script reference in the html code. the code is inserted by me manually inside the head tag script src=js/jquery-1.9.1.js type=text/javascript/script script src=js/my.js type=text/javascript/script link href=css/my.css rel=stylesheet type=text/css / ... any ideas how to solve it? many thanks! -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TW5] Problem mixing leftmenu and default tiddlers
Ton, the problem turned out to be zoomin mode. I prefer to have only one tiddler open at a time, but for some reason when I switched to normal or classic view mode it worked fine. So I guess for now I will have to live with classic view mode. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: [TW5] Problem mixing leftmenu and default tiddlers
Hi Dave, And that is why it worked for me; I don't use zoomin mode normally and switched to classic mode when I imported your stuff ;-) Anyhow, you know what was happening. Cheers, Ton On Tuesday, May 20, 2014 8:03:24 PM UTC+2, David Gifford wrote: Ton, the problem turned out to be zoomin mode. I prefer to have only one tiddler open at a time, but for some reason when I switched to normal or classic view mode it worked fine. So I guess for now I will have to live with classic view mode. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: TW5 include external js/css in meta area
Thanks, that did the job! Also thanks @stephan for the advice. felix On Tuesday, May 20, 2014 5:53:54 PM UTC+2, BJ wrote: to include code (ie your script references etc) in the header section, put the code into a tiddler and tag it with $:/core/wiki/rawmarkup. cheers BJ On Tuesday, May 20, 2014 1:56:09 PM UTC+1, Felix Küppers wrote: Hi, I want to include my external library in TW5, however, everytime I save TW, it overrides my script reference in the html code. the code is inserted by me manually inside the head tag script src=js/jquery-1.9.1.js type=text/javascript/script script src=js/my.js type=text/javascript/script link href=css/my.css rel=stylesheet type=text/css / ... any ideas how to solve it? many thanks! -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: TW5: Using TW as a musical scratchpad with BopLand.org services?
Hi TwWizards BJ just gave me the answer to this question in another threadhttps://groups.google.com/d/msg/tiddlywiki/7StDWFV9Wh0/_r1XvyMFzJYJ . The simple solution is to create a tiddler eg: $:/_bopland_render_js tag it with: $:/core/wiki/rawmarkup write: script src=http://my.bopland.org/render.js;/script - save wiki and reload page. Now if you wrap your musical notes inside the bopland class it will render as a playable note sheet, which can be transposed, downloaded as an image or as a mp3 file. Example: div class=bopland lick 4/4 g#8 | A7 a c# e g bb c16 bb a8 g | Dm7 f d a g f d a b~ | Dm7 b4 r r2 | /div It doesn't work with: @@.bopland lick 4/4 g#8 | A7 a c# e g bb c16 bb a8 g | Dm7 f d a g f d a b~ | Dm7 b4 r r2 | @@ Cheers Måns Mårtensson Den onsdag den 15. januar 2014 10.32.40 UTC+1 skrev Jeremy Ruston: On Wed, Jan 15, 2014 at 9:12 AM, Stephan Hradek stephan...@gmail.comjavascript: wrote: While we are at it: Do you remember that you wanted to change the @@ block to create a classed div instead of applying the class to all child objects? Yes I remember. I think this would also help here as a bopland div is then simply created with @@bopland musical notes here @@ Right, I was talking about how to get the script loaded up in the first place, by packaging it into a plugin. Best wishes Jeremy -- Jeremy Ruston mailto:jeremy...@gmail.com javascript: -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: TW5: Using TW as a musical scratchpad with BopLand.org services?
Same thing is possible with jTab from tardatehttps://groups.google.com/d/msg/tiddlywiki/rLBLUy2wlXI/gvy3CwXq6FMJ (guitar chords and tab notation) Create a tiddler eg.: $:/_jTab_render tag it with: $:/core/wiki/rawmarkup write: !-- recommended to avoid security warnings with SVG in IE8 -- meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 / !-- optional: helpers to preset jtab region heights to avoid rendering jitter -- link type=text/css rel=stylesheet href=http://jtab.tardate.com/css/jtab-helper.css/ !-- mandatory script includes for jtab -- script src=http://jtab.tardate.com/javascripts/jquery.js; type=text/javascript/script script src=http://jtab.tardate.com/javascripts/raphael.js; type=text/javascript/script script src=http://jtab.tardate.com/javascripts/jtab.js; type=text/javascript/script save wiki and reload page. Now if you wrap your musical notes inside the jtab class it will render as guitar tabs or as simple guitar chord diagrams.. Example: div class=jtab C:1 C:2 C:3 C:4 C:5 /div or @@.jtab C:1 C:2 C:3 C:4 C:5 @@ which will also work.. It is recommended http://jtab.tardate.com/ that you download and refer to the tardate scripts from your own server as the rendition might get a little slow when served from http://jtab.tardate.com/ ... We have a nice plugin for TWc which doesn't need any external script references. It would be very nice if someone ported it to TW5 :-) Cheers Måns Mårtensson Den tirsdag den 20. maj 2014 22.55.51 UTC+2 skrev Måns: Hi TwWizards BJ just gave me the answer to this question in another threadhttps://groups.google.com/d/msg/tiddlywiki/7StDWFV9Wh0/_r1XvyMFzJYJ . The simple solution is to create a tiddler eg: $:/_bopland_render_js tag it with: $:/core/wiki/rawmarkup write: script src=http://my.bopland.org/render.js;/script - save wiki and reload page. Now if you wrap your musical notes inside the bopland class it will render as a playable note sheet, which can be transposed, downloaded as an image or as a mp3 file. Example: div class=bopland lick 4/4 g#8 | A7 a c# e g bb c16 bb a8 g | Dm7 f d a g f d a b~ | Dm7 b4 r r2 | /div It doesn't work with: @@.bopland lick 4/4 g#8 | A7 a c# e g bb c16 bb a8 g | Dm7 f d a g f d a b~ | Dm7 b4 r r2 | @@ Cheers Måns Mårtensson Den onsdag den 15. januar 2014 10.32.40 UTC+1 skrev Jeremy Ruston: On Wed, Jan 15, 2014 at 9:12 AM, Stephan Hradek stephan...@gmail.comwrote: While we are at it: Do you remember that you wanted to change the @@ block to create a classed div instead of applying the class to all child objects? Yes I remember. I think this would also help here as a bopland div is then simply created with @@bopland musical notes here @@ Right, I was talking about how to get the script loaded up in the first place, by packaging it into a plugin. Best wishes Jeremy -- Jeremy Ruston mailto:jeremy...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: TW5: Using TW as a musical scratchpad with BopLand.org services?
Forgot to link to a twc jtabplugin example: http://jtab.tiddlyspot.com/#jTabPlugin Cheers Den tirsdag den 20. maj 2014 23.35.42 UTC+2 skrev Måns: Same thing is possible with jTab from tardatehttps://groups.google.com/d/msg/tiddlywiki/rLBLUy2wlXI/gvy3CwXq6FMJ (guitar chords and tab notation) Create a tiddler eg.: $:/_jTab_render tag it with: $:/core/wiki/rawmarkup write: !-- recommended to avoid security warnings with SVG in IE8 -- meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 / !-- optional: helpers to preset jtab region heights to avoid rendering jitter -- link type=text/css rel=stylesheet href= http://jtab.tardate.com/css/jtab-helper.css/ !-- mandatory script includes for jtab -- script src=http://jtab.tardate.com/javascripts/jquery.js; type=text/javascript/script script src=http://jtab.tardate.com/javascripts/raphael.js; type=text/javascript/script script src=http://jtab.tardate.com/javascripts/jtab.js; type=text/javascript/script save wiki and reload page. Now if you wrap your musical notes inside the jtab class it will render as guitar tabs or as simple guitar chord diagrams.. Example: div class=jtab C:1 C:2 C:3 C:4 C:5 /div or @@.jtab C:1 C:2 C:3 C:4 C:5 @@ which will also work.. It is recommended http://jtab.tardate.com/ that you download and refer to the tardate scripts from your own server as the rendition might get a little slow when served from http://jtab.tardate.com/ ... We have a nice plugin for TWc which doesn't need any external script references. It would be very nice if someone ported it to TW5 :-) Cheers Måns Mårtensson Den tirsdag den 20. maj 2014 22.55.51 UTC+2 skrev Måns: Hi TwWizards BJ just gave me the answer to this question in another threadhttps://groups.google.com/d/msg/tiddlywiki/7StDWFV9Wh0/_r1XvyMFzJYJ . The simple solution is to create a tiddler eg: $:/_bopland_render_js tag it with: $:/core/wiki/rawmarkup write: script src=http://my.bopland.org/render.js;/script - save wiki and reload page. Now if you wrap your musical notes inside the bopland class it will render as a playable note sheet, which can be transposed, downloaded as an image or as a mp3 file. Example: div class=bopland lick 4/4 g#8 | A7 a c# e g bb c16 bb a8 g | Dm7 f d a g f d a b~ | Dm7 b4 r r2 | /div It doesn't work with: @@.bopland lick 4/4 g#8 | A7 a c# e g bb c16 bb a8 g | Dm7 f d a g f d a b~ | Dm7 b4 r r2 | @@ Cheers Måns Mårtensson Den onsdag den 15. januar 2014 10.32.40 UTC+1 skrev Jeremy Ruston: On Wed, Jan 15, 2014 at 9:12 AM, Stephan Hradek stephan...@gmail.comwrote: While we are at it: Do you remember that you wanted to change the @@ block to create a classed div instead of applying the class to all child objects? Yes I remember. I think this would also help here as a bopland div is then simply created with @@bopland musical notes here @@ Right, I was talking about how to get the script loaded up in the first place, by packaging it into a plugin. Best wishes Jeremy -- Jeremy Ruston mailto:jeremy...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] [TW5] Problem with Wizard
Hi, I add an image to a Wizard (http://acupunctureschoolonline.com/wp-content/uploads/2010/11/L.I.-4-Joining-Valley-HEGU-Acupuncture-Points-1.jpg and ) but it's height is bigger than the Wizard and I can close it since the close button don't appear at the screen. Have I done anything wrong? Or it's a bug? Thanks, Pedro -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] Re: TW5: Using TW as a musical scratchpad with BopLand.org services?
TW5 examples: http://bopland-tw5.tiddlyspot.com/#GettingStarted http://jtab-tw5.tiddlyspot.com/#jTabUsage Enjoy Den onsdag den 21. maj 2014 00.04.21 UTC+2 skrev Måns: Forgot to link to a twc jtabplugin example: http://jtab.tiddlyspot.com/#jTabPlugin Cheers Den tirsdag den 20. maj 2014 23.35.42 UTC+2 skrev Måns: Same thing is possible with jTab from tardatehttps://groups.google.com/d/msg/tiddlywiki/rLBLUy2wlXI/gvy3CwXq6FMJ (guitar chords and tab notation) Create a tiddler eg.: $:/_jTab_render tag it with: $:/core/wiki/rawmarkup write: !-- recommended to avoid security warnings with SVG in IE8 -- meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 / !-- optional: helpers to preset jtab region heights to avoid rendering jitter -- link type=text/css rel=stylesheet href= http://jtab.tardate.com/css/jtab-helper.css/ !-- mandatory script includes for jtab -- script src=http://jtab.tardate.com/javascripts/jquery.js; type=text/javascript/script script src=http://jtab.tardate.com/javascripts/raphael.js; type=text/javascript/script script src=http://jtab.tardate.com/javascripts/jtab.js; type=text/javascript/script save wiki and reload page. Now if you wrap your musical notes inside the jtab class it will render as guitar tabs or as simple guitar chord diagrams.. Example: div class=jtab C:1 C:2 C:3 C:4 C:5 /div or @@.jtab C:1 C:2 C:3 C:4 C:5 @@ which will also work.. It is recommended http://jtab.tardate.com/ that you download and refer to the tardate scripts from your own server as the rendition might get a little slow when served from http://jtab.tardate.com/ ... We have a nice plugin for TWc which doesn't need any external script references. It would be very nice if someone ported it to TW5 :-) Cheers Måns Mårtensson Den tirsdag den 20. maj 2014 22.55.51 UTC+2 skrev Måns: Hi TwWizards BJ just gave me the answer to this question in another threadhttps://groups.google.com/d/msg/tiddlywiki/7StDWFV9Wh0/_r1XvyMFzJYJ . The simple solution is to create a tiddler eg: $:/_bopland_render_js tag it with: $:/core/wiki/rawmarkup write: script src=http://my.bopland.org/render.js;/script - save wiki and reload page. Now if you wrap your musical notes inside the bopland class it will render as a playable note sheet, which can be transposed, downloaded as an image or as a mp3 file. Example: div class=bopland lick 4/4 g#8 | A7 a c# e g bb c16 bb a8 g | Dm7 f d a g f d a b~ | Dm7 b4 r r2 | /div It doesn't work with: @@.bopland lick 4/4 g#8 | A7 a c# e g bb c16 bb a8 g | Dm7 f d a g f d a b~ | Dm7 b4 r r2 | @@ Cheers Måns Mårtensson Den onsdag den 15. januar 2014 10.32.40 UTC+1 skrev Jeremy Ruston: On Wed, Jan 15, 2014 at 9:12 AM, Stephan Hradek stephan...@gmail.comwrote: While we are at it: Do you remember that you wanted to change the @@ block to create a classed div instead of applying the class to all child objects? Yes I remember. I think this would also help here as a bopland div is then simply created with @@bopland musical notes here @@ Right, I was talking about how to get the script loaded up in the first place, by packaging it into a plugin. Best wishes Jeremy -- Jeremy Ruston mailto:jeremy...@gmail.com -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Problem with Wizard
Hi Pedro I've noticed the same thing. If you put something in a modal/wizard and it's bigger than your scrren height you won't be able to close it - and you're forced to reload the page - which can result in loosing data/edits... The modal wizard popup looks very similar to a lightbox. When you have an open lightbox the usual behaviour is that if you click outside it (or press ESC) it will close - or you will be able to scroll to see the content.. Imo the modal wizards should behave more like standard lightboxes - or at least have some kind of a workaround for closing them, when the close-button is hidden. A related problem are the behaviour of alerts - it's pretty anoying that you'll have to delete a tiddler to get rid of the popup - again imo it would be nice if you could simply override it by pressing ESC... Maybe Jeremy can explain why they behave like they do - there might be some practical reason? Cheers Måns Mårtensson Den onsdag den 21. maj 2014 00.53.15 UTC+2 skrev Pedro Maia: Hi, I add an image to a Wizard ( http://acupunctureschoolonline.com/wp-content/uploads/2010/11/L.I.-4-Joining-Valley-HEGU-Acupuncture-Points-1.jpgand ) but it's height is bigger than the Wizard and I can close it since the close button don't appear at the screen. Have I done anything wrong? Or it's a bug? Thanks, Pedro -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TWC] Right way to make a Javascript function available throughout a TW?
On Sunday, May 18, 2014 5:48:58 PM UTC-4, Antaeus Feldspar wrote: Suppose that I have a Javascript function that I want to be available throughout the Tiddlywiki, for plugins that can use Javascript code (in this case, ForEachTiddlerPlugin) to employ. What is the correct method to do it? I thought that the correct method was to add the code to MarkupPostHead. The following was what I added there, just to test that I had that part right: script type=text/javascript function simpletest() { return false; } /script To test it, I also made a copy of a call to the ForEachTiddler macro that was working, and prefixed simpletest() to an existing boolean expression the macro call was using. The result was that when I attempted to reload the Tiddlywiki, it would not load at all. What did I do wrong? Thank you, okido and Yakov! I tried okido's solution first, as it was the simpler, and it works! I do not know for sure, but I have a *guess* why my first try made the TW not load at all - I had Eric Shulman's InlineJavascriptPlugin installed in the same TiddlyWiki, and I think that the script tags made the plugin think this is something *I'm* supposed to handle! which it wasn't. I still have that plugin installed, but since I didn't put the script tags around the code this time, there was no chance for conflict. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Problem with Wizard
Hi Pedro As your image is really 3 images, you could part them. Wizards can be nested. Birthe -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.