Plugin throws an error when used on a deferred NestedSlider

33 views
Skip to first unread message

whatever

unread,
Jul 8, 2012, 5:43:46 AM7/8/12
to TiddlyWiki
Hi!

I made a plugin (1) that parses tables of multivalue slices. It works
at it should, but I just noticed that when used on a deferred
NestedSlider (2), I get an error. Here's what the browsers say:
TypeError: Unable to get value of the property 'title': object is null
or undefined
TypeError: Cannot read property 'title' of undefined
TypeError: 'undefined' is not an object
TypeError: Cannot convert 'tiddler' to object

This only happens when the slider is deferred (using the ...
operator). If the slider is not deferred, everything works okay.

Any ideas?


(1) http://crewlist.tiddlyspot.com/
(2) http://www.TiddlyTools.com/#NestedSlidersPlugin

w

Craig in Calgary

unread,
Jul 9, 2012, 10:56:05 AM7/9/12
to tiddl...@googlegroups.com
Whatever,

What I know:
*http://dvdkv2.tiddlyspot.com/ - doesn't quite work - because the two (2) calls to the tableFilter macro ([[Table3]] and [[Table Level 2]]) are passing in the tiddler name [[Services]] instead of the tiddler [[Table]].
*In my experience http://www.TiddlyTools.com/#NestedSlidersPlugin causes me grief when I attempt to use it in conjunction with a function that is expecting its' content to be rendered ''before'' the function completes. When the rendering is deferred the function has nothing to work with and fails. Off the top of my head I can't think of an example but I remember spending hours debugging some personal macros that wouldn't work if the rendering was deferred.

What I suspect:
*Your plugin needs the content rendered before it can proceed. In its' current state deferral isn't an option.

Solution:
*Beats me. My javascript skills are minimal. This forum has many brilliant TiddlyWikiers (need I drop names? Eric, Måns, PMario, etc.) any of whom can probably rattle off a that's-so-simple-why-didn't-I-think-of-it solution before their morning cup of coffee. Me? Not so much so.

I'll be watching this thread for your solution.

Good Luck.

Craig

http://crewlist.tiddlyspot.com/

whatever

unread,
Jul 9, 2012, 11:54:23 AM7/9/12
to TiddlyWiki
Hi, Craig.

That stuff under examples were just personal notes that I forgot to
delete (I deleted it now). I know dvdkv2 doesn't work and I'm not
using it.

Under PROBLEM I put the two examples, once on a deferred slider and
once on a slider that is not deferred. I'm guessing it loses its
context somewhere.

w

On 9 jul., 16:56, Craig in Calgary <craig.prich...@gmail.com> wrote:
> Whatever,
>
> What I know:
> *http://dvdkv2.tiddlyspot.com/- doesn't quite work - because the two (2)
> calls to the tableFilter macro ([[Table3]] and [[Table Level 2]]) are
> passing in the tiddler name [[Services]] instead of the tiddler [[Table]].
> *In my experiencehttp://www.TiddlyTools.com/#NestedSlidersPlugincauses me

whatever

unread,
Jul 10, 2012, 5:50:27 AM7/10/12
to TiddlyWiki
Fixed the issue by using Eric's solution to another problem (1). The
solution is:
var
tiddler=store.getTiddler(story.findContainingTiddler(place).getAttribute('tiddler'));

(1) https://groups.google.com/group/tiddlywiki/msg/21473ace780529e7

w

On Jul 9, 5:54 pm, whatever <kbrezov...@gmail.com> wrote:
> Hi, Craig.
>
> That stuff under examples were just personal notes that I forgot to
> delete (I deleted it now). I know dvdkv2 doesn't work and I'm not
> using it.
>
> Under PROBLEM I put the two examples, once on a deferred slider and
> once on a slider that is not deferred. I'm guessing it loses its
> context somewhere.
>
> w
>
> On 9 jul., 16:56, Craig in Calgary <craig.prich...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Whatever,
>
> > What I know:
> > *http://dvdkv2.tiddlyspot.com/-doesn't quite work - because the two (2)
Reply all
Reply to author
Forward
0 new messages