For what its worth, I've moved the code from the "onsubmit" into a
function that gets set up in my own name space object in a plugin. I
pass the format and field information into the function. In the html
form element it looks like this:

 onsubmit="mas.submitForm(this,'| %0 |%1 | %2| %3| %4| %5|%6 |\n',
 
[this.fldDate.value,this.fldDest.value,this.fldMax.value,this.fldAvg.value,
         this.fldDist.value, this.fldTime.value, this.fldCom.value] )"

There's probably smarter ways to do this, but it seems to be working.
I can see this being useful in all sorts of logging situations.

Thanks again,
Mark

On Feb 11, 9:06 am, "Mark S." <[email protected]> wrote:
> Hi Eric,
>
> This is working really great. What would I need to do to make this
> code reusable (to use on more than one form) ?
>
> Thanks!
> Mark
>
> On Feb 8, 12:19 pm, Eric Shulman <[email protected]> wrote:
>
> > > What I would like is a tiddler macro that might work like this: You
> > > set up a form in a tiddler.
> > >...
> > > When you submit, the data from the form would be collected, formatted
> > > (printf style), and inserted into the top or bottom of the specified
> > > tiddler.
>
> > This should help:
>
> >http://www.tiddlytools.com/faq.html#FAQ_CreateTiddlersFromForms
>
> > enjoy,
> > -e
> > Eric Shulman
> > TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
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