Sky conditions text incorrect

When my page first loads the sky conditions test says “Mostly Cloudy” or whatever it is, then about 2 seconds later it changes to “Dry Night time” or something similar.

I can’t seem to track down the problem. Can anyone help me out?

http://wxcalgary.com/test


Capture.PNG

Hi Blaine,

When your page first loads, the PHP produces

<tr>
                    <td style="border: none;" align="center" valign="middle">
                        <span class="ajax" id="ajaxconditionicon2">
                        <img src="./ajax-images/sct.gif" alt="Mostly cloudy" title="Mostly cloudy" width="74" height="74">
                        </span>
                    </td>
                    <td style="text-align: center; border: 1px solid gray;" align="center">
                        <span class="ajax" id="ajaxcurrentcond">
                        Mostly cloudy </span>


                    </td>
                </tr>

as the display for icon/conditions. That all comes from ajax-dashboard3.php and testtags.php values.

After the AJAX script cuts in (ajaxWDwx3.js), the HTML is updated to be

<tr>
                    <td style="border: none;" align="center" valign="middle">
                        <span class="ajax" id="ajaxconditionicon2" lastobs="3" style=""><img src="./ajax-images/sct.gif" style="" alt="Current conditions" align="" width="74" vspace="0" hspace="0" height="74" border="0"></span>
                    </td>
                    <td style="text-align: center; border: 1px solid gray;" align="center">
                        <span class="ajax" id="ajaxcurrentcond" lastobs="Dry" style="">Dry</span>


                    </td>
                </tr>

and those values are from the JavaScript and clientraw.txt

Your /meteotemplate/wdUpload/testtags.php?sce=view shows

   $weathercond = 'Dry';
   $Currentsolardescription = 'mostly cloudy ';

so that is where the PHP ‘mostly cloudy’ comes from. Your ajaxWDwx3.js has

var clientrawFile = '../meteotemplate/wdUpload/clientraw.txt'; // location of clientraw.txt relative to this page on website

(which could be used as

var clientrawFile = '/meteotemplate/wdUpload/clientraw.txt'; // location of clientraw.txt relative to this page on website

for an absolute URI instead).

That clientraw.txt shows

Dry

as the value for the current condition. So the clientraw.txt is not displaying the metar/solar sensor cloud condition.

Hope this helps…

stupid question…

Any idea on how to fix this?