New ajaxWDwx.js (V2.09) and WD/PHP/AJAX demo package available

First, I should say Merry Christmas!

I’ve updated the ajaxWDwx.js script to have several requested features:

  1. ability to limit the number of updates before pausing (page reload will restart the script)
  2. new date/time ajax tags (thanks to Kevin at
  3. other new ajax variable tags added to the set
  4. support added for other wind-rose wind direction icon displays and added a wr-calm.gif icon to my set.
  5. I collected all the static English words used in displays in the script to a new area (just under the settings) so it should be easier for you to customize the script for other languages.
    See the comments in the script for further info.

The AJAX/WD/PHP demo program set was updated, and a new ‘dashboard’ demo was added to the ‘sidebar’ demo (along with the associated test pages). The sidebar and dashboard now use the forecast icons from the NWS-only advforecast2.php script as part of the display … it should be easy to change it to use the equivalent WU-forecast.php script instead for the icons. Both sidebar and dashboard have settings for display units, so the structure should be easy to change to units of measure different from the (quaint) ones used in the USA.

Download ajaxWDwx.js from
Download the wr-calm.gif icon and add to your ./ajax-images/ if you’re using the wr-*.gif set

Download new PHP demo package from

You can run the AJAX gizmo testpage, AJAX sidebar testpage, or the new AJAX dashboard testpage from the scripts page above or via these links.

I’ve updated the carterlake/AJAX template set with the new ajaxWDwx.js and wr-calm.gif, so if you’re a current user of the template set, only the two changed files are needed.

I’ve also been working with Kevin to produce a new carterlake/AJAX/PHP website that uses Kevin’s included site control structure … that needs a bit more work as we’re finishing up. You can sneak a peek at the working draft if you like. It should be ready early January for distribution.

Best regards,

Hi Ken

Wow - what a gift for christmas !!!

I have installed the new ajax script and its working perfect. (had to modify it a bit because I use it together with ajaxgizmo on the same pages.)

Thank you very much

Merry christmas.

Best regards,


Awesome you guys!!!

Merry Christmas!



Outstanding! Thanks so much for your continued contributions to this forum and to our ever improving weather pages. Merry Christmas and a safe, Happy New Year!


Wow, good work!

:greenjumpers:, more Toys for Christmas. Glad I have a few days off this week to update here.

Hope everyone has a Great Christmas.

Well I have uploaded them to my website but for some strange reason they will not update unless I hit the refresh button

Like I said they work great when I hit the refresh button. And the strange thing is I have the older one of them here and it works wonderfull.

Any ideas what went wrong?


Merrry Christmas!!!

:oops: #-o My bad! Sorry.

I’d left a referral to ajaxWDwx2.js in both ajax-sidebar-testpage.php and ajax-dashboard-testpage.php from my build/testing – it’s now corrected in

You can change both copies from

<script type="text/javascript" src="ajaxWDwx2.js"></script>


<script type="text/javascript" src="ajaxWDwx.js"></script>

and the script will load in both ajax-sidebar-testpage.php and ajax-dashboard-testpage.php. Fortunately, ajax-gizmo-testpage.php had the right script invoked.

Sorry!!! Got to remember that brain cells fade after 11pm :smiley:

Best regards,

No problem at all :slight_smile: If it was not for you and the others my webpage would not be as good as it is now.

Thanks you!!

Enjoy tinkering with the new toys!

Merry Christmas to all!

Ho Ho Ho,

yes I will and thank you for the gift of the toys!!

Merry Christmas to you also.!!

Thanks Ken for the scripts. I just added the new ajax dashboard to my site

I just did a major makeover of my weather site for Long Beach, WA

Nicely done :smiley:

Very nice Mike! Very clean with good presentation. I’m pleased you’ve put the dashboard to good use :slight_smile:

Best regards,

Working on mine too Ken, one question…is there a way to make the entire page resize properly for small screens…i.e. 12" screens?



I see what you mean, Jack. At 800x600, just the left menu and dashboard fit on the screen, while the ‘incompressable’ graphics on the right remain sticking out and the header and footer compress to the screen width (800px). Looks a bit odd.
Even at 1024x768, the right graphics poke out beyond the header/footer border.

I’d tried using the 320x240 graphics on the right using the pictr class and no table, but that caused even a stranger phenomenon. The graphics would stay nudged to the right boundary and ‘float’ over and obscure the dashboard from the right. That looked worse on my demo page, so I opted for the table to corral them.

Sorry, I don’t have a great suggestion to keep the header/footer aligned to the max extent of the page (with graphics on right).

Best regards,

Ken strikes again! :smiley:

An excellent Christmas gift from a great guy! Thanks again Ken! Many thanks to everybody who worked on this script too! =D>

I wonder if it is possible to make another addition to the script concerning the translation of current weather conditions text. As far as
I can see, we can translate everything except this text. Is this possible Ken?

My best wishes to everybody in this forum for a Happy and prosperous New Year! :santa:

Thanos, Thessaloniki - Greece

Hi Thanos!

I’d like to allow translation of the clientraw[49] – some of it’s parts are from WD-directly, and some from WD’s decoding of METAR conditions. I’ll ask Brian if he would send the strings he uses for METAR decode in WD and see what can be done.

Best regards,

A BIG Thanks to Ken for the update and happy end of the year to all of you!

you can set the weather descriptions in WD to what language you like
see in summary image and icon setup, thresholds to set icons,set names for rain thresholds
does that help?
otherwise if its metar conditions coming directly from a parsed metar then there is not alot that can be done…it would take a bit of work to check the big range of possible metar conditions and then apply to the needed language
not impossible though