webtags and javascript
Posted: Wed 12 Mar 2014 5:09 am
Hi, I have been modifying the stock HTML pages for sometime, but I am looking to expand my knowledge and functionality with some basic javascript. As javascipt in HTML is completely foreign to me, I am hoping someone can point me in the right direction of how some basic mods that use the Cumulus webtags in javascript.
What I am trying to achieve is a basic update to my Today page, where rather than display both Consecutive Rain Days and Consecutive Dry Days, it just displays one tag or the other depending on which tag is active and some corresponding descriptive text
What my table presently has is:
<tr class="td_rainfall_data">
<td>Consecutive Days of Rain</td>
<td><#ConsecutiveRainDays></td>
<td> </td>
</tr>
<tr class="td_rainfall_data">
<td>Days Since It Last Rained</td>
<td><#ConsecutiveDryDays></td>
<td> </td>
</tr>
Depending on which tag is greater than 0 I want it to display that particular table row.
Further down the track, I would start to like utilising some of the Boolean webtags. Hopefully I can work that out for myself once I can understand some of the basics how the webtags interact in javascript
What I am trying to achieve is a basic update to my Today page, where rather than display both Consecutive Rain Days and Consecutive Dry Days, it just displays one tag or the other depending on which tag is active and some corresponding descriptive text
What my table presently has is:
<tr class="td_rainfall_data">
<td>Consecutive Days of Rain</td>
<td><#ConsecutiveRainDays></td>
<td> </td>
</tr>
<tr class="td_rainfall_data">
<td>Days Since It Last Rained</td>
<td><#ConsecutiveDryDays></td>
<td> </td>
</tr>
Depending on which tag is greater than 0 I want it to display that particular table row.
Further down the track, I would start to like utilising some of the Boolean webtags. Hopefully I can work that out for myself once I can understand some of the basics how the webtags interact in javascript