[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-10 Thread Alex Hough
FND Thank for this. Slowly things are coming more and more clear. ALex >> how do you arrive at the syntax of things like this > > {{evaluated parameters}} are part of the TiddlyWiki core functionality: >     http://tiddlywiki.org/wiki/Macros#Evaluated_Parameters > > Similarly, the %n substitutio

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-10 Thread FND
> how do you arrive at the syntax of things like this {{evaluated parameters}} are part of the TiddlyWiki core functionality: http://tiddlywiki.org/wiki/Macros#Evaluated_Parameters Similarly, the %n substitution is achieved using the core's string format method. -- F. --~--~-~--

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-09 Thread Alex Hough
Thanks Eric. It works!! (alex super happy!!) Out of interest, how do you arrive at the syntax of things like this. Is is part of the UI mastercraftman's methodology or is this TiddlyTools home brewed stuff? Thanks again. Alex --~--~-~--~~~---~--~~ You received

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-09 Thread Eric Shulman
errata:    <> should be: <> (i.e., use {{...}} for *computed* parameter value) -e Eric Shulman TiddlyTools / ELS Design Studios --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to t

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-09 Thread Alex Hough
Eric, Very Neat. Thanks a lot. Really like it. Will save a lot of work! Alex 2009/3/9 Eric Shulman : > >> My solution is to use inline scrips to write to each <> txtValue>> into a tiddler using inline scripts. >> >> >> document.write( >> config.options.txtMyUnit); >> >> >> Then to transclude

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-09 Thread Eric Shulman
> My solution is to use inline scrips to write to each < txtValue>> into a tiddler using inline scripts. > > > document.write( > config.options.txtMyUnit); > > > Then to transclude into the tiddler, adding highlights thus: > @@<>@@ Try this: http://www.TiddlyTools.com/#WikifyPlugin Provides

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-09 Thread alex
FWIW The problem was getting values in <> into tiddlers for a questionnaire. I tried to write them directly into the questions, but it didn't look right. My solution is to use inline scrips to write to each <> into a tiddler using inline scripts. document.write( config.options.txtMyUnit); Th

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-09 Thread Alex Hough
Thanks for the pointers. I guess that there is no really sort cut to inserting <> generated values into tiddlers other than using inlineScript plugin and writing everything in longhand? ALex 2009/3/9 FND : > >> I thought it might be tricky. >> I saw [Jeditable and] wondered if this kind of thin

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-09 Thread FND
> I thought it might be tricky. > I saw [Jeditable and] wondered if this kind of thing would be > possible with inputs in the future? Well, Jeditable works a bit differently; it takes the width of the original (rendered) text and applies it to the generated textbox - while not perfect, that's m

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-09 Thread Alex Hough
Thanks FND. I thought it might be tricky. I saw some jQuery on my surfing travels: i found it again [1] I wondered if this kind of thing would be possible with inputs in the future? Alex [1]http://www.appelsiini.net/projects/jeditable/default.html 2009/3/9 FND : > >> I want to change the size

[tw] Re: Change size of .txtOptionInput to suit length of string - howto?

2009-03-09 Thread FND
> I want to change the size of the box that holds the text Making the box's width precisely fit its contents is gonna be tricky. However, you can use CSS to define a static width: .txtOptionInput { width: 15em; } HTH. -- F. --~--~-~--~~~---~--~-