cloudy cloudy

Author Topic: I'm sure someone out there can help me? /Resolved  (Read 405 times)

0 Members and 1 Guest are viewing this topic.

Offline Rickadman2

  • Posts: 141
  • Utica, New York, USA
    • rick.reynolds.227
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Mohawk Valley Weather / New York State
I'm sure someone out there can help me? /Resolved
« on: April 02, 2019, 07:25:10 PM »
If you go to my site:

www.MohawkValleyWeather.com

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
« Last Edit: April 17, 2019, 03:07:28 PM by Rickadman2 »

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,075
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 73.0.3683.86
Re: I'm sure someone out there can help me?
« Reply #1 on: April 02, 2019, 07:48:36 PM »
I can give you a clue but not the whole solution  :wink:  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.

Offline saratogaWX

  • Global Moderator
  • Posts: 5,928
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Saratoga Weather
Re: I'm sure someone out there can help me?
« Reply #2 on: April 02, 2019, 08:58:14 PM »
That would be in the ajaxWDwx.js script
Code: [Select]
var wrType   = '.png';      // extension of the graphic filename
  Change it to
Code: [Select]
var wrType   = '.gif';      // extension of the graphic filename
to match your PHP specification in Settings.php (so both use .gif for windrose)
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Rickadman2

  • Posts: 141
  • Utica, New York, USA
    • rick.reynolds.227
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Mohawk Valley Weather / New York State
Re: I'm sure someone out there can help me?
« Reply #3 on: April 16, 2019, 06:56:48 PM »
I made the above changes, but am still having the same problem.

Any ideas?

Rick

www.MohawkValleyWeather.com


Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,075
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 73.0.3683.103
Re: I'm sure someone out there can help me?
« Reply #4 on: April 16, 2019, 07:01:36 PM »
I made the above changes

I beg to differ, http://www.mohawkvalleyweather.com/ajaxWDwx.js still shows:

Code: [Select]
var wrType   = '.png';      // extension of the graphic filename


Offline saratogaWX

  • Global Moderator
  • Posts: 5,928
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Saratoga Weather
Re: I'm sure someone out there can help me?
« Reply #5 on: April 16, 2019, 07:05:48 PM »
The change to the ajaxWDwx.js script is not on your site... make the change and it should work as intended.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Rickadman2

  • Posts: 141
  • Utica, New York, USA
    • rick.reynolds.227
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Mohawk Valley Weather / New York State
Re: I'm sure someone out there can help me? /Resolved
« Reply #6 on: April 17, 2019, 03:10:08 PM »
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

www.MohawkValleyWeather.com

Offline saratogaWX

  • Global Moderator
  • Posts: 5,928
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Saratoga Weather
Re: I'm sure someone out there can help me? /Resolved
« Reply #7 on: April 17, 2019, 04:55:29 PM »
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.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates