Hi Ken, and thank you for that answer! I will surely go AJAX harvesting when the need arises :-D
I left out the fact that these scripts were in the header of a web page that is "routinely processed" by WC, and not in an external JS file - if that matters. Right now, instead, I have all the WC tags that are used by my scripts in the body of that same web page. But since that whole page is pre-processed by WC before upload, it seems as though putting WC tags directly in JS scripts should work just fine, but it doesn't. For example:
<head>
<script>
var yr = STAT$RAIN:TOTAL:YESTERDAY$;
//
...other stuff that works perfectly with a direct//
value inserted for the variable instead of a WC tag</script>
</head>
One would think that WC tag would be replaced by a real value that JS could parse as a float and use in the script. But then the script doesn't work.
You said "(not recommended)" referring to doing this in "routinely processed" files. I'm curious as to why that is.
Here's my web page as I have it now with JS pulling tags from elsewhere on the same page:
http://dentonrainfall.com/