Yes, I knew you could do that. But, of course that wouldn't be any help for what I was trying to do.
Thanks again,
Will
Moderator: daj
Code: Select all
<#rrate>Code: Select all
<#rrate>/hrIs this what you mean?steve wrote:I'd need to see your change in context.
Code: Select all
var rainratehr = convertRain(realtime[8]); // make per hour rate.
set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain);
Code: Select all
<#rrate>Code: Select all
<#rrate>/hrCode: Select all
var rainratehr = convertRain(realtime[8]); // make per hour rate.
set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain);Code: Select all
<td><#rrate> <#rainunit>/hr</td>Code: Select all
var rainratehr = convertRain(realtime[8]); // make per hour rate.
set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain);Code: Select all
<span id='ajaxrainratehr'></span>Hi beteljuice,beteljuice wrote:That is JavaScript and in order for it to work the html must be something like:Code: Select all
var rainratehr = convertRain(realtime[8]); // make per hour rate. set_ajax_obs("ajaxrainratehr",rainratehr.toFixed(dpRain) + uomRain);The original Ajax call replaces the contents of the span with rainratevalue unitof(rain)measure. eg. 21.5 mmCode: Select all
<span id='ajaxrainratehr'></span>
To add /hr just put that immediately after the named span in the html