[tw] Re: Dropdowns and Tags

2009-11-04 Thread David Cooper
I completely agree that htmlify is a hack that really doesn't reduce code. At the time I wrote it, I needed a fix for a few forms. I'll probably wind up removing it or changing it to something cleaner. Maybe when I learn about DOM objects as FND suggested. Your solution is elegant. As I have no D

[tw] Re: Dropdowns and Tags

2009-11-04 Thread David Cooper
One step at at time. ;) That is my next area to look into. I keep hearing about DOM elements but I know next to nothing about it. Know of any good resources? On Wed, Nov 4, 2009 at 9:38 AM, FND wrote: > >> So I wrote my solution as a new macro selectfromlist creating my >> dropdownlist from ite

[tw] Re: Dropdowns and Tags

2009-11-04 Thread David Cooper
That line was ripped out of the helloWorld macro that is used as an example on the tiddlywiki.org site. I never changed out the word "world". I would change that line to read: var parm = params.length > 0 ? params[0] : ""; You could just as easily change it to: var parm = params[0]; No

[tw] Re: For Each and ValueSwitcher

2009-11-04 Thread David Cooper
I think I ran into this problem myself about a week ago and it was a humdinger that I solved with two macros and a complete re-write of my form. Essentially I tried to use a foreach to generate a list of tagged objects to use as contents of a dropdown selection. My problem was mostly because of th

[tw] DataTiddler woes.

2009-11-03 Thread David Cooper
I'm writing a new macro and I am trying to use the DataTiddler.getDataObject which I am assuming is an array but it just doesn't seem to be working for me. The code below is just some scratch code to figure this out. It should return 3. Can anyone eyeball this code and tell me what I am doing wron