[tw] Re: ListboxPlugin and a tiddler-based list of links?
> In some cases, I wanted two links, so my list included things like > [[value1]], [[value2]] > > Am I trying to do something that the plugin wasn't meant to do? The most recent revision of ListboxPlugin added support for 'multi- select' listboxes. Multiple selection values are stored in tiddler fields using space-separated, bracketed lists. Unfortunately, as a result, your non-multiselect list includes a single item whose value, "[[value1]], [[value2]]", was being handled internally as a list of two items, producing the strange output you observed. To fix this, I've updated the plugin so that listboxes (and droplists) that are not using "allowMultiple" will always interpret the field as containing a single value, even if that value appears to be a space- separated, bracketed list. Get the update (v1.2.1) here: http://www.TiddlyTools.com/#ListboxPlugin http://www.TiddlyTools.com/#ListboxPluginInfo Please let me know if this fixes your problem... -e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@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: ListboxPlugin and a tiddler-based list of links?
Hi Eric, I now get the results I want if I omit the first and last brackets in my list entry: value1]], [[value2 or even: value1]], [[value2]], [[value3 Thanks! One other thing I noticed since that earlier revision is that when I click "done" after making changes to my tiddler containing the list, I get a nonresponsive script error (this happened also when I experimented with editing the ListboxNewSample tiddler on the http://www.tiddlytools.com site). In Prism, I can click "stop script" and the tiddler is saved. In Firefox I had to close the browser. Any ideas about why? cmari On Jun 15, 10:02 am, Eric Shulman wrote: > > In some cases, I wanted two links, so my list included things like > > [[value1]], [[value2]] > > > Am I trying to do something that the plugin wasn't meant to do? > > The most recent revision of ListboxPlugin added support for 'multi- > select' listboxes. Multiple selection values are stored in tiddler > fields using space-separated, bracketed lists. > > Unfortunately, as a result, your non-multiselect list includes a > single item whose value, "[[value1]], [[value2]]", was being handled > internally as a list of two items, producing the strange output you > observed. > > To fix this, I've updated the plugin so that listboxes (and droplists) > that are not using "allowMultiple" will always interpret the field as > containing a single value, even if that value appears to be a space- > separated, bracketed list. > > Get the update (v1.2.1) here: > http://www.TiddlyTools.com/#ListboxPlugin > http://www.TiddlyTools.com/#ListboxPluginInfo > > Please let me know if this fixes your problem... > > -e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@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: ListboxPlugin and a tiddler-based list of links?
> One other thing I noticed since that earlier revision is that when I > click "done" after making changes to my tiddler containing the list, I > get a nonresponsive script error (this happened also when I > experimented with editing the ListboxNewSample tiddler on > thehttp://www.tiddlytools.comsite). Wow! You found a serious problem... an 'runaway' loop caused by a *programming error* on my part!!! It's been fixed. Get the update (v1.2.2) here: http://www.TiddlyTools.com/#ListboxPlugin http://www.TiddlyTools.com/#ListboxPluginInfo Here's the details: When any tiddler is changed, config.macros.select.refresh() is invoked so that listbox contents can be kept in sync. This function contains a loop that starts with this code: for (var i=0; ihttp://groups.google.com/group/TiddlyWiki?hl=en -~--~~~~--~~--~--~---
[tw] Re: ListboxPlugin and a tiddler-based list of links?
> I now get the results I want if I omit the first and last brackets in > my list entry: > value1]], [[value2 > or even: > value1]], [[value2]], [[value3 You shouldn't have to play 'tricks' with the brackets. The problem is that the code that was setting the field value was automatically adding surrounding [[ and ]] to any value that contained spaces, so that multi-select listbox will produce valid space- separated, *bracketed* lists. However, this logic should not be applied if a single-select droplist/listbox is being used (i.e., 'allowMultiple' was not specified). I've made an update (v1.2.3) to fix this: http://www.TiddlyTools.com/#ListboxPlugin http://www.TiddlyTools.com/#ListboxPluginInfo note: after updating, you'll need to go back to your list definitions and restore the leading and trailing [[ and ]] that you had previously removed as a work around... enjoy, -e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@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: ListboxPlugin and a tiddler-based list of links?
Thank you! Especially of course for figuring out a way to accommodate both the multi-select and the droplist devotees simultaneously. But also for the explanation of what needed to be changed in the code - I appreciate getting to see the process as well as the product. cmari On Jun 15, 1:25 pm, Eric Shulman wrote: > > I now get the results I want if I omit the first and last brackets in > > my list entry: > > value1]], [[value2 > > or even: > > value1]], [[value2]], [[value3 > > You shouldn't have to play 'tricks' with the brackets. > > The problem is that the code that was setting the field value was > automatically adding surrounding [[ and ]] to any value that contained > spaces, so that multi-select listbox will produce valid space- > separated, *bracketed* lists. However, this logic should not be > applied if a single-select droplist/listbox is being used (i.e., > 'allowMultiple' was not specified). > > I've made an update (v1.2.3) to fix this: > http://www.TiddlyTools.com/#ListboxPlugin > http://www.TiddlyTools.com/#ListboxPluginInfo > > note: after updating, you'll need to go back to your list definitions > and restore the leading and trailing [[ and ]] that you had previously > removed as a work around... > > enjoy, > -e --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to TiddlyWiki@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 -~--~~~~--~~--~--~---