On Sunday, 11 January 2015 09:05:32 UTC, Jeremy Ruston wrote:
>
> >  the contents of the select widget are buried at the grandchild level 
> rather than being immediate children
>
> Why is that happening? The action widgets are supposed to be the immediate 
> children of the triggering widget. There is a proposal to extend things so 
> that all descendent action widgets are triggered, but that's not how it 
> works at the moment.
>

I don't know.  I'm still learning this stuff!  But I should clarify that 
it's not just the action widget, but also the option nodes that are at the 
grandchild level.  There is a single node at the child level - I'm not sure 
how to look at what that is.

I am tempted to try to implement triggering of all descendents.  Is there a 
practical reason why the proposal you mention hasn't been implemented, or 
is it just because no-one has gotten around to doing it yet?
 

> > It seems that the value attribute of the action-setfield widget is 
> always evaluated before the action has been completed, which means that if 
> I am picking up the field controlled by the select widget, then I always 
> get the old value.  Anyone have an idea on how to pick up the new value?
>
> That's correct; at the point that the action-setfield widget is triggered 
> the target tiddler will have been written, but the associated refresh cycle 
> won't have occurred, and so the action-setfield widget itself won't have 
> been refreshed so that it's attributes reflect the new value.
>
> I think you'll need to run a refresh of the children of the select widget 
> before invoking the action.
>

I'll see if I can figure out how to do that.  However, for my application, 
which is a bit more complicated than my demo tiddler, I think this might 
not be adequate.  I might try to write a new bespoke select widget that 
also does what I am currently doing with a js macro and the action-setfield 
widget.

Cheers,

Neil.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to