carterlake HTML templates with AJAX package

Well done Ken for following up on edje’s issue and diagnosing the probable fault :smiley: This place is great with all the support individuals give… TOPS!

PS- I hope that is the issue for you! :wink:

Ah, Thanks Ken for quick reply. The 2nd ajaxWDwx.js actually was at the including page, the page looks much constable now.

What could be the reason the thermometer keeps flashing ? (I can see… downloading thermometer.php from www weersverwachtingen…everytime at taskbar).

Thermometer.php is calling at the script but it looks likes an endless call
It only happens when linking from another page (and go back to index. )

Tokki I now have here a lot of books about PHP and Mysql trying to understand. The easy scripts are clear but most scripts are to complicated for a starter (and then such ‘easy’ things as what Ken replied are the little devils :x I’m always trying to fix it by myself but after 2 days try and error-ing I have had it #-o)

edit: See at Jack page same thing’s happening. It’s IE6 and FF related as well I notice. Opera works fine. Having Win2k I can’t upgrade to IE7, from what I red about it, a lot of bugs from IE6 are solved. Is that related with this page issue as well ?

Edje,
Your ‘flashing thermometer’ with IE6 may be a result of the funky support for .png images in IE6.

You can try the following experiment to change the image type to .gif in your copy of thermometer.php change

 // send the image
 header("content-type: image/png");
 imagepng($image);

to

 // send the image
 header("content-type: image/gif");
 imagegif($image);

Then the thermometer will be a .gif file instead of a .png.

I don’t have a copy of IE6 available anymore to test this… sorry.

Best regards,
Ken

Hi Ken, thanks for the suggestion I changed it to GIF. But IE6 is self-foolish and keeps updating the page when ajax is updating in the left-upper-corner.
Hm maybe it does what is has to do…(updating the page) and trying to update themometer.php #-o

So I made a little trip to Pinto’s website (had a flashing page as well) and moved the thermometer like his to the leftsidebar. Problem solved. Thanks to Pinto 8).

Edje,
You’ve avoided the issue by not AJAX updating the thermometer… it’s now just a ‘plain image’

<img src="./thermometer.php" alt="thermometer">

instead of something like

<span class="ajax" id="ajaxthermometer"><img src="./thermometer.php" alt="thermometer"></span>

The thermometer image should only ‘flash’ when the temperature changes (magic done by the set_ajax_obs function in ajaxWDwx.js, which changes the element only when there’s a difference between ‘lastobs’ value and the current value). If IE6 doesn’t store the ‘lastobs’ value in escaped style (like IE7, FF, Opera, Safari), then the comparison of lastobs to current would fail, and the value would be updated on the page (resulting in a graphics reload for the thermometer image).

Without access to IE6, I can’t test that hypothesis, but it’s my favorite theory right now :slight_smile:

Best regards,
Ken

Of course you’re right Ken !!! :oops: :oops: :oops: Little late here, did doubt about it when I only noticed 'thermometer’in the alt without values min max #-o. Changed it !

See tomorrow how it works , bedtime here and thanks for keep an eye on it :smiley:

The thermometer image should only 'flash' when the temperature changes (magic done by the set_ajax_obs function in ajaxWDwx.js, which changes the element only when there's a difference between 'lastobs' value and the current value). If IE6 doesn't store the 'lastobs' value in escaped style (like IE7, FF, Opera, Safari), then the comparison of lastobs to current would fail, and the value would be updated on the page (resulting in a graphics reload for the thermometer image).

Without access to IE6, I can’t test that hypothesis, but it’s my favorite theory right now

Understand the theory Ken; it’s still flashing but sometimes it stops after 5 minutes
and that’s what I don’t understand. I will ask Pinto what he did to stop the flashing (anyway don’t see at his site with my IE6), I think he made a adapt for it.

Thanks so far !

Edje,
I experienced a period with ‘flashing’ of the updates to both thermometer and current condition icon in Firefox.
Cleared the disk cache on the browser, and all was well again.

Best regards,
Ken

Hi Ken,

Thanks working on it , cleared the whole cache and yes it’s better now.

Now the cache has changed there were more things happening/changing, for example the texts and icon after updating the page.
When loading the page first time there is text / wind-arrow (see att 1)
but after the first update of the page text and arrow disappeared (if no ‘Calm’ in it) (att 2)
The root page I include is att 3

Tried several changes in script/size of the layer etc but what I have now it’s the best I could realize. Still 2 update routines working agains together ?
Any suggestion what’s wrong ?

thnx so far !


client index oke.jpg

client index upd.jpg

include page.jpg

Hi all,
I download ajaxWD-carterlake-V2-10 and upload to server files .js, .css, .jpg, and folder ajax-images
For now i am using only wxlocal-onepage-M.html page
In a same folder I have clientraw.txt file
Link for my page http://www.knjazevac.co.yu/Meteo/wx.html
I upload every 5 min graphs and wx.html on server
but some data on page don’t change
time for Temperature, Humidity and pressure max and min
Any comments?

Hi and welcome to the forum! Your page does seem to be updating correctly for all the AJAX-enabled variables.

The clientraw.txt file (which drives the AJAX updates) doesn’t contain all the data used on the page, so some of the values (like times for temperature, humidity and pressure max and min) are only updated by WD when the full page is uploaded.

Hope this helps…
Best regards,
Ken

Thanx for reply
My mistake I don’t know how but I turn off WD Internet Creation files
Thanx one more time
Boce

Boce,
You’ll need to have WD internet file creation and upload enabled (turned on) in order to have your web page display correctly. The AJAX updates from clientraw.txt will only partially update the display… the routine uploads are needed to keep your web page ‘current’.

Check in Control Panel, FTP/Connections, Connections TAB to make sure the Main Internet Switch is set to ON.

Best regards,
Ken

Hi Ken

When i see the Windy/Rain icon in WD no icon shows for
for the ajax icon, any ideas please?

You’ll need to update your ajaxWDwx.js script from 2.06 to 2.12 to get the windy/rain icon to display

http://saratoga-weather.org/template/WD-World/ajaxWDwx.js

You’ll also need the images associated with that:

windyrain.gif

windyrain.jpg

Best regards,
Ken


windyrain.gif

windyrain.jpg

Thanks a lot Ken, didnt realise there was an update #-o

sorry, i hope i post at the right place.

i installed the ajax html template http://www.info-mauritius.com/weather-wetter/wx2.html
works fine, BUT i can see so many errors in my server log.
clientraw.txt not found, but it is there? and it seems to work.
but why i get this error always?
regards

I recommend that you use ‘upload file as temporary and rename’ option on the clientraw realtimeftp … that will minimize missing clientraw.txt entries in your server log.

do i find this settings in “advance internet setting”?
if yes, then i have to solve this http://discourse.weather-watch.com/t/44291 problem first.
or there is a nother place to do so?
best regards

No that’s a different place. :wink:
Go to Control Panel > Webfiles/Web Page/Realtime FTP > Realtime Client FTP and look for the second tick box down from the top.