[quote author=Meerkat link=topic=43859.msg359121#msg359121 date=1264273919]
Were you using the ajaxWDwx3.js script like tstorm is?
Yes this is the script Ron put together. I appreciate all that you are doing and hope that you can incorporate
[quote author=Meerkat link=topic=43859.msg359121#msg359121 date=1264273919]
Were you using the ajaxWDwx3.js script like tstorm is?
Yes this is the script Ron put together. I appreciate all that you are doing and hope that you can incorporate
Please see the attached readme. It would be nice to eliminate this if possible…
[quote author=tstorm link=topic=43859.msg359133#msg359133 date=1264276113]
Iconset Mod.zip (46.6 KB)
Thanks Ron.
I will go and fetch myself a beer as you suggest and dig deeper into this.
I tried the var updates; as you suggested in the AjaxWDwx3 but the ajax still doesn’t update. No errors show up. I did do a cntrl F5.
John
No, it’s working fine.
I think you’re misled by the UPDATE indicator.
Try replacing it with the code I have given on the first page of this thread.
I’m sorry but I’m a little confused. Replace what with what and in what file.
In your “ajax-dashboard.php” replace the “update indicator” block with this code:
<!-- TOP TABLE ROW - FOR UPDATED HEADER & UOM SWITCHING -->
<?php // get last update time from testtags.php
$tagsInterval = 5; // testtags.php upload interval in minutes
$updTime = mktime($time_hour,$time_minute,0,$date_month,$date_day,$date_year);
$nextUpd = mktime($time_hour,$time_minute+$tagsInterval,0,$date_month,$date_day,$date_year);
?>
<tr align="center">
<td>
<div onClick="javascript:ajax_changeUnits();" style="cursor: pointer;" title="Toggle units-of-measure & restart"><b>
<span id="uomM" style="color: gray;"><?php langtrans('METRIC'); ?></span> |
<span id="uomE" style="color: blue;"><?php langtrans('IMPERIAL'); ?></span></b>
</div>
</td>
<td class="data1" colspan="3" style="text-align: center">
<span class="ajax" id="ajaxindicator"><?php langtrans('Updated'); ?>:</span>
<span class="ajax" id="ajaxdate@">
<noscript>
<?php echo date("j/n/Y @ h:ia",$updTime).' - '.langtransstr('next update at').' '.date("h:ia",$nextUpd); ?>
</noscript>
<script type="text/javascript"><!--
document.write("<?php echo $date.' @ '.$time; ?>");
//--></script>
</span>
<span class="ajax" id="ajaxntimess"> </span>
<script type="text/javascript"><!--
document.write(' <small><i>(<span id="ajaxcounter">0</span> <?php langtrans('sec ago'); ?>)</i></small>');
//--></script>
</td>
</tr>
The red code in your ajax-dashboard.php needs replacing:
Updated: @
23-Jan-2010 3:15pm - next update at 3:20pm
|
I put everything where you outlined and the dashboard is having problems.
John
Possible bug:
I noticed that the ajaxbarotrendtext tag doesn’t follow the ajaxbaroarrow tag. On my site the arrow says the barometer is falling yet the text still says Steady.
Scott
Where is your new ajax-dashboard.php located … you’re including another version of it and I can’t look at the source.
ajax-dashboard_solar.php
Have you still got the source for the old one?
There are some tags missing and I don’t know where they should go.
I’ll place the code into the right spot for you then.
I just replaced the ajax-dashboard_solar.php with the old one that works.
John,
For now I have removed ajaxWDwx3 form my top.php. Also, I have updated my ajax-dashboard to the latest version 4.x (not the beta). http://mountprospectweather.us
Ok, here is your’s with the new UPDATE row: http://www.bashewa.com/data/ajax-dashboard_solar.php?sce=view
If that does not work I suggest Scotts latest version at Webster Weather:
http://www.weather-watch.com/smf/index.php?PHPSESSID=1qr6gce5o4q00990n9ke01e2o6&topic=37938.0
Ron, your ajaxWDwx3.js works fine.
You should not have any problems if yo put it back.
Thanks for the code … you gave me some more ideas to play with now.
Didn’t know about the wxlocal5.html … now I now how to get additional info into ajaxWDwx.js
The updated dashboard didn’t work. My wxindex has version 4.20 which is the latest. The link above is the beta not released yet.
Found the problem … it’s the language translation thing.
Try again … I’ve removed that:
http://www.bashewa.com/data/ajax-dashboard_solar.php?sce=view
That did it! Thank you very much. I need to look into the ajax update time as it seems to exceed 200 secs but I did see it update once at least after 100 sec. I will have to check out the solar part and how it works tomorrow as the sun is going down now.
John, there’s a function name clash in ajaxWDwx3.js and ajaxWDwx-packed.js
Both are trying to use the function “set_ajax_obs” and the version in ajaxWDwx3.js is winning which is causing an error in the other.
Best you remove that script for now or rename all the function in ajaxWDwx3.js to be safe.