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.
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
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
Moderator: mcrossley
- 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
You have no element called 'monthname', so everything folds.
......................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
Exactly what I was thinking, but I haven't changed anything...beteljuice wrote:You have no element called 'monthname', so everything folds.
EDIT: Aha, so I have changed something! I removed the <span id="MonthName">January</span> code so it broke. A bit strange though.
- 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
These parts of the code are unconditional
i.e. The element MUST exist or else the 'instruction' which follows creates a fatal error.
Code: Select all
function changeData(month) {
document.getElementById('MonthName').innerHTML = monthnames[month];
document.getElementById('TempH').innerHTML = hightemp[month];
etc. etc.......................Imagine, what you will KNOW tomorrow !