Actually, your problem is (2) (arrow appears when first loaded, then disappears when AJAX updates the page), so it is a JavaScript issue.
Looking at your page with Firefox and JavaScript enabled, I see the arrow does disappear.
The basic PHP generates this HTML with your CUtags.php values
Code: Select all
<span class="ajax" id="ajaxtemparrow"><img src="./ajax-images/rising.gif" alt="Increased 0.2°C than last hour." title="Increased 0.2°C than last hour." width="7" height="8" style="border: 0; margin: 1px 3px;" /></span>
so the up-arrow image is there when the page first loads.
The ajaxCUwx.js has
Code: Select all
var temp = convertTemp(realtime[2]);
...
var temptrend = convertTempRate(realtime[25]);
var temparrow = ajax_genarrow(temp, temp-temptrend, '',
langTempRising+uomTemp+langTempLastHour,
langTempFalling+uomTemp+langTempLastHour,1)
to refresh the arrow (or remove it) based on the realtime.txt fields 2(current temp), 25(temperature trend).
Your realtime.txt has those fields as 5.5 and 8.4 respectively.
Using Firefox Web Developer View Generated Source shows
<span style="" lastobs=" " class="ajax" id="ajaxtemparrow"> </span>
so the issue is a JavaScript one.
I did a compare of the 'stock' ajaxCUwx.js and your current copy, and found over 30 differences where you have 'tweaked' the code (outside the normal settings area, but not in that specific area). I am unable to reproduce the problem with my Cumulus setup and the stock ajaxCUwx.js so all I can say is:
1) yes, you have a JavaScript (not a PHP) issue.
2) it is in your ajaxCUwx.js
3) since I cannot reproduce the effect on my own setup, I can't do any more diagnosis for you.
Regrets,
Ken