Here's the current form of a tiddler I'm working on. I get some values from 
input boxes and stick them into fields. I want to pass those values to a 
javascript routine I wrote which will take those values and use them to 
calculate a single number. My macro works just fine but I haven't figured 
out how to plug them into the $macrocall. I'd like it to be something like 
d1=value(field(d1)) instead of the examples predefined d1="3.1"

I'm fairly certain I'm missing something straightforward and obvious. 

Enter the distance for a recent race (miles): <$edit-text size="4" 
> field=d1/><br>
> Enter your time for that race: <$edit-text size="3" field=h1/>:<$edit-text 
> size="3" field=m1/>:<$edit-text size="3" field=s1/><br>
>
> Enter the distance for another race (miles):<$edit-text size="4" 
> field=d2/><br>
> Enter your time for that race: <$edit-text size="3" field=h2/>:<$edit-text 
> size="3" field=m2/>:<$edit-text size="3" field=s2/><br>
>
> |Distance |Predicted Time|
> |1 mile | <$macrocall $name="equivalent" d1="3.1" h1="0" m1="40" s1="0" 
> d2="26.2" h2="5" m2="25" s2="12" d3="1"/> |
> |2 mile | <$macrocall $name="equivalent" d1="3.1" h1="0" m1="40" s1="0" 
> d2="26.2" h2="5" m2="25" s2="12" d3="2"/> |
> |5k | <$macrocall $name="equivalent" d1="3.1" h1="0" m1="40" s1="0" 
> d2="26.2" h2="5" m2="25" s2="12" d3="3.1"/> |
> |Half Marathon | <$macrocall $name="equivalent" d1="3.1" h1="0" m1="40" 
> s1="0" d2="26.2" h2="5" m2="25" s2="12" d3="13.1"/> |
> |Marathon | <$macrocall $name="equivalent" d1="3.1" h1="0" m1="40" s1="0" 
> d2="26.2" h2="5" m2="25" s2="12" d3="26.2"/> |
> |50k | <$macrocall $name="equivalent" d1="3.1" h1="0" m1="40" s1="0" 
> d2="26.2" h2="5" m2="25" s2="12" d3="31.07"/> |
>

So what is the easy answer I'm missing?

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