Thank you Eric, that's helped part way, and I'm stumped about why it
doesn't work for both of two instances:
script to get remote field value:
<script>
var wt=store.getValue("weight","wt")
var ht=parseInt(store.getValue("height","height"))
var bmi = Math.round(wt/(ht*ht)*703*10)/10
return wt
return ht
return bmi
</script>
----
wt is <<wikify "%0" "w...@weight">>
height is <<wikify "%0" "hei...@height">>
In the tiddler that has the above code, all I get is this:
script to get remote field value:
195
---------------------------------------- (etc)
wt is 195
height is 73
I tried it without the parseInt() before, then thought maybe that "ht"
is just text, and not a number (doesn't work either way).
If it makes a difference, the "wt" was set by <<edit wt>>, but the
"ht" was set by <<select hei...@height rows:1 allowBlank
+heightConversion allowEdit>>.
I don't get any errors, so I'm not sure what the difference is b/w the
two. One weird thing is that if I copy "return ht" and paste it above
the "return wt" line, then nothing at all (from the "<script>")
appears above the dotted line in view mode.
any ideas?
--
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.