Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Monthly Records Month Selection Broken

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Monthly Records Month Selection Broken

Post by Grimers »

Hi Steve,

I would be very grateful if you could have a scan over my problem which is related to my monthly records page. For some reason, I don't know when but when I click any of the months the data does not change? I have checked my code against the distributed code but there's no difference as far as I can tell.

Here is the page: http://www.newton-poppleford-weather.co ... ecords.htm

I have attached the local copy of the page as well.

Thanks in advance.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Monthly Records Month Selection Broken

Post by beteljuice »

You have no element called 'monthname', so everything folds.
Image
......................Imagine, what you will KNOW tomorrow !
Grimers
Posts: 240
Joined: Tue 24 Nov 2015 9:07 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 64-bit
Location: Newton Poppleford, Devon, UK
Contact:

Re: Monthly Records Month Selection Broken

Post by Grimers »

beteljuice wrote:You have no element called 'monthname', so everything folds.
Exactly what I was thinking, but I haven't changed anything...

EDIT: Aha, so I have changed something! I removed the <span id="MonthName">January</span> code so it broke. A bit strange though.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Monthly Records Month Selection Broken

Post by beteljuice »

These parts of the code are unconditional

Code: Select all

function changeData(month) {
	document.getElementById('MonthName').innerHTML = monthnames[month];
	document.getElementById('TempH').innerHTML = hightemp[month];

etc. etc.
i.e. The element MUST exist or else the 'instruction' which follows creates a fatal error.
Image
......................Imagine, what you will KNOW tomorrow !
Locked