Mario,

Wow! That did it! Thanks so much for all your help. I hope to have a
useful macro at the end of it all.

I updated the macro on your site (with some other tweaks), so it won't
crash now (fingers crossed!).

Here is the pertinent bit of code that I klutzed together, following
your suggestion:
....
    var itmfound
    $.each(items, function(i, itm) {
         itmfound=itm.innerHTML;
         $("<li>"+itmfound+"</li>").appendTo("#ListTableColumn");
    }

Popping the innerHTML out of that itm object seems to do the trick.
(jQuery must be able to do the same, but I couldn't find the proper
syntax. I would normally use something like $(itm).text(), but that
throws an error.)

I'm off and running, thanks to your help. I'll upload the final
product when it's done, which shouldn't take too long now, with all
the debugging tips you have given me.

Best,

Bill

On Jun 24, 4:29 pm, PMario <pmari...@gmail.com> wrote:
> Hi Bill,
>
> > I put in a table, and a test tiddler, and get the same behavior. Could
> > always be my (overloaded) browser....
>
> I am allmost sure, it is not the browser :)
>
> At the first run, I didn't have a look at ListNavPlugin. Now I did. I
> made a side by side 
> tiddlerhttp://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#ListNav_vs_...
> to see the differences. (works with a wide screen)
>
> $("<div /><ul />").attr("id", "ListTableColumn").appendTo(place);
> produces a
> <div id="ListTableColumn"> <ul id="ListTableColumn"></ul></div>
> structure, which will cause trouble in the future, but doesn't cause
> the error.
>
> var items = $(text).find("tr td:nth-child(1)");
> only finds one item
>
> >items:  [td]  <-- click it an you will see which one.
>
> [td] is an object. I think that causes the error.
>
> You should try to extrakt the text. (see jQuery API)
>
> ==========
> I prepared 
> ListNavPluginhttp://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#ListNavPlugin
> with a similar console.log. Have a look at Firebug, and see the
> difference between yours and ListNavPlugin. Open ListNavTest. It will
> trigger the macro.
>
> Have a look at jQuery API, which can be reached from the MainMenu:
> [[jQuery AP Doku TW]]http://fnd.lewcid.org/tmp/jQueryAPI.html#text
>
> Hope this helps.
> regars Mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to tiddlywiki...@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywikidev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to