If you go to my site:
Then scroll down a few inches
Then hit Ctrl / F5 on you computer, you will see my old animated
Wind Rose. Watch as it goes away once the page updates with
the current weather.
How do I get it to stay?
Ricik
If you go to my site:
Then scroll down a few inches
Then hit Ctrl / F5 on you computer, you will see my old animated
Wind Rose. Watch as it goes away once the page updates with
the current weather.
How do I get it to stay?
Ricik
I can give you a clue but not the whole solution The initial page load is loading the .gif version of the rose e.g. http://www.mohawkvalleyweather.com/ajax-images/wr-SSW.gif, but the subsequent AJAX page updates are loading the .png version of the rose, e.g. http://www.mohawkvalleyweather.com/ajax-images/wr-SSW.png. So, you need to fix the AJAX load to load .gif instead of .png.
That would be in the ajaxWDwx.js script
var wrType = '.png'; // extension of the graphic filename
Change it to
var wrType = '.gif'; // extension of the graphic filename
to match your PHP specification in Settings.php (so both use .gif for windrose)
I made the above changes, but am still having the same problem.
Any ideas?
Rick
I beg to differ, http://www.mohawkvalleyweather.com/ajaxWDwx.js still shows:
var wrType = '.png'; // extension of the graphic filename
The change to the ajaxWDwx.js script is not on your site… make the change and it should work as intended.
I was making the change on my computer, and uploading it.
For some reason it kept changing back.
Finally I went to the Control Panel at my host, and made the change. Then it stuck.
Thanks all for your help!
Rick
Glad you got it sorted… I’d recommend you check the destination for your FTP uploads – it’s likely not going where it needs to based on your description above.