I am trying to use the $select widget to select one of the available 
widgets and display static contents from tiddlywiki.com in an iframe.

However, the select widget somehow choses to persist the computational 
basis for the option value in the state tiddler rather than the actual 
value being displayed.

http://tb5.tiddlyspot.com/#Widget%20Browser

What to do?


Here's a dump of the current situation for reference...


select a widget:    action-navigate    action-sendmessage    ActionWidgets 
   browse    button    checkbox    count    dropzone    edit    edit-bitmap 
   edit-text    encrypt    fieldmangler    fields    image   
 importvariables    keyboard    link    linkcatcher    list    macrocall   
 navigator    password    radio    reveal    scrollable    select    set   
 setvariable    text    tiddler    transclude    view   

documentation on TiddlyWiki.com...

<iframe src="http://tiddlywiki.com/static/ActionNavigateWidget.html"; 
style="height:600px;" scrolling="yes"/>


Componentsdata$:/data/core/widgets 
<http://tb5.tiddlyspot.com/#%24%3A%2Fdata%2Fcore%2Fwidgets>stateThis is the 
problem $:/temp/widget-browser 
<http://tb5.tiddlyspot.com/#%24%3A%2Ftemp%2Fwidget-browser>:

<$view tiddler="$:/data/core/widgets" index="action-navigate" format="text"/>

How to only persist the value of the select box, not the code used to 
compute it?!?sourceWidget Browser 
<http://tb5.tiddlyspot.com/#Widget%20Browser>:

\define getValue(data,index) <$view tiddler="$(data)$" 
index="$(currentTiddler)$" format="text"/>

select a widget:
<$set name="data" value="$:/data/core/widgets">
<$select tiddler="$:/temp/widget-browser" default="action-navigate">
<$list filter='[<data>indexes[]sort[title]]'>
<option value=<<getValue>> >
<<currentTiddler>>
</option>
</$list>
</$select>
</$set>

documentation on ~TiddlyWiki.com...

<$macrocall $name="static" tiddler={{$:/temp/widget-browser}} height="600px" 
scrolling="yes"/>

<br>

!!Components
;data
:[[$:/data/core/widgets]]
;state
:@@color:red; This is the problem <<source [[$:/temp/widget-browser]]>>How to 
only persist the value of the select box, not the code used to compute it?!?@@
;source
:<<source "Widget Browser">>


Best wishes, Tobias.

-- 
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