Actually, Tobias, your second solution was just what I needed.:D As
for persisting one of the values, I simply didn't add your solution.
Thanks.
w

I doesn't report an error, but it doesn't work either. Any ideas?

On Sep 6, 2:36 pm, Tobias Beer <[email protected]> wrote:
> Hi whatever,
>
> This procedure does not seem to make sense. Either you populate a form
> with options that are somewhat persistent or you have input fields in
> a form that do not require any persistent options.
>
> However, you could clear those option-inputs on startup by putting
> something like this behind them...
>
> <<tiddler {{
> var e,el,o,
> els=place.getElementsByTagName('input'),
> ex=['txtEmailDomain','txtExcludeThisToo'];
>
> for(e=0;e<els.length;e++){
>   el=els[e];
>   o=el.getAttribute('option');
>   if(!ex.contains(o)){
>     if(o.substr(0,3)=='txt')el.value='';
>     else el.value=false;
>   }}
>
> '';}}>>
>
> This would be applied when the form is opened and so any options not
> in the exclusion array called "ex" would be initialized empty... but
> then clicking "clickify" would not reset them.
>
> Which is your actual problem ...that you are using clickify. Now, you
> could bloat the whole thing even further by adding more code to the
> clickify handler in order to reset the options like so...
>
> {{{
> <<option txtNewProject>>
> <<clickify  newTiddler
>   label:"AddNewProject"
>   title:{{var
> o=config.options.txtNewProject;config.options.txtNewProject='';o;}}
>   text:{{store.getTiddlerText("ProjectPanel")}}
>
> }}}
>
> But still, it would be MUUUUCH better if you were using actual html
> forms, like so...
>
> <html><form name='MYFORM'><input name='MYINPUT' type='text'></form></
> html>
>
> And then maybe use clickify to reset an actual form instead of some
> tiddlywiki option...
>
> {{{
> <html><form name='newProject'><input name='projectName' type='text'></
> form></html>
> <<clickify  newTiddler
>   label:"AddNewProject"
>   title:{{var
> o=document.newProject.projectName,v=o.value;o.value='';v;}}
>   text:{{store.getTiddlerText("ProjectPanel")}}
>
> }}}
>
> Tobias.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to