Hi, Mario!
Wikify was exactly what I needed! :) Even my old script works when I
use wikify. :D
Toggling wasn't high on my list, but now that you mentioned it, there
are a few cases where that might come in handy.

w

On Mar 3, 3:43 pm, PMario <[email protected]> wrote:
> I changed you script a little bit. It uses wikify instead of
> document.write now.
>
> Try:http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#AddTagWithS...
>
> Do you need the tags to be toggled ?
> -m
>
> On Mar 3, 11:36 am, whatever <[email protected]> wrote:
>
> > Hi!
>
> > I based my macro on your HelloWorld macro, I just changed the names of
> > variables and removed the stuff I thought was unnecessary. But since
> > JavaScript is not my strong suit and jQuery is a black hole to me, I
> > wasn't aware that I needed the jQuery stuff.
>
> > My original script used fET to provide input, so for each matching
> > tiddler found, it created a button. That worked like it was supposed
> > to. However, in some cases, I need to provide an array of tags that
> > aren't also tiddler names. What I wanted was to have a tiddler with
> > slices, and the slices would contain static comma-separated arrays of
> > tags. Then I would parse the selected array (using fET to determine
> > which array to use) and use my old script to generate the buttons.
>
> > I tried the following with your new macro:
> > <<tiddler [[testtest##qwe2]] with:
> > {{store.getTiddlerText('testtest##qwe1')}}>>
> > !qwe1
> > foo,bar,baz,qweq
> > !qwe2
> > <script>
> > var strTagList = "$1";
> > var arrTags = strTagList.split(",");
> > var i;
> > for (i=0;i<arrTags.length;i++) {
> > document.write("<"+"<addTag \""+arrTags[i]+"\">"+"><br/>");}
>
> > </script>
>
> > but the result was: <>
>
> > When I tried
> > document.write("<span macro='addTag \""+arrTags[i]+"\"><\/span><br/
>
> > >");
>
> > result was: No tag text specified!
>
> > The desired result in this case would be four buttons:
> > foo
> > bar
> > baz
> > qweq
>
> > I'm guessing that the parsed values don't get included into whatever
> > function/macro/script is inside the document.write, because when I
> > try:
> > document.write(arrTags[i]+"<br/>");
>
> > the list of input values is displayed correctly.
> > So, I'm a little lost. :)
>
> > w
>
> > On 1 mar., 22:22, PMario <[email protected]> wrote:
>
> > > Hi whatever,
>
> > > I did set up a testcase [1]. It looks different to your macro. But
> > > very similar to HelloWorld. Did you play with hello world, to see, how
> > > it works? I saw, that hello world needs some variable name adjustment
> > > and some more comments. I commented [1] a little bit more. Hope, it
> > > points out what it does, better now.
>
> > > If you use FF, you should use FireBug and FireQuery. I didn't comment
> > > console.log() so there should be some more info, what's going on.
>
> > > ====
>
> > > I am not sure, what's the exact function, that you want?
> > > TestAddTag [2] seems to be the default usecase.
>
> > > TestAddTagTranscluded [3] is special. (Should the transcluded tiddler
> > > get the tag or the calling tiddler)
>
> > > How is your taglist built?
>
> > > You can create new tiddlers in teamwork space, for testing. Deleting
> > > my stuff shouldn't be possible :)
>
> > > -m
>
> > > [1]http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#AddTagPlugi...
> > > [2]http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#TestAddTag
> > > [3]http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#TestAddTagT...

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to