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

Colour won't display around "Cool"

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Colour won't display around "Cool"

Post by William Grimsley »

Hi Ken/others,

Why is it that the colour around the heat word e.g. Cool won't display before the Javascript updates?

For example, in PHP the heat word just displays as a word and then when the AJAX updates 10 seconds later, the heat word displays as a word with the relevant colour and box.

Thanks,

William
User avatar
saratogaWX
Posts: 1238
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Colour won't display around "Cool"

Post by saratogaWX »

The ajax-dashboard.php has no formatting built-in for the $heatcolourword display. The HTML/PHP for that display is

Code: Select all

                  <span class="ajax" id="ajaxheatcolorword">
                    <?php  langtrans($heatcolourword); ?></span>
When the AJAX routine executes, the innerHTML for <span> id="ajaxheatcolorword" is changed and displayed with the border/color.

And no, I don't plan on adding the PHP equivalent of the code to the dashboard...
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Colour won't display around "Cool"

Post by William Grimsley »

saratogaWX wrote:The ajax-dashboard.php has no formatting built-in for the $heatcolourword display. The HTML/PHP for that display is

Code: Select all

                  <span class="ajax" id="ajaxheatcolorword">
                    <?php  langtrans($heatcolourword); ?></span>
When the AJAX routine executes, the innerHTML for <span> id="ajaxheatcolorword" is changed and displayed with the border/color.

And no, I don't plan on adding the PHP equivalent of the code to the dashboard...
Ok, so there is a way to get this border/colour to be displayed then?

Ok, I can't understand why not because it just looks silly not showing up and then showing up not one or the other...
BigOkie
Posts: 283
Joined: Tue 28 May 2013 1:06 am
Weather Station: Davis VP2 Plus
Operating System: Raspian Bookworm (RPi 3b)
Location: Tulsa, OK

Re: Colour won't display around "Cool"

Post by BigOkie »

William Grimsley wrote:
saratogaWX wrote:The ajax-dashboard.php has no formatting built-in for the $heatcolourword display. The HTML/PHP for that display is

Code: Select all

                  <span class="ajax" id="ajaxheatcolorword">
                    <?php  langtrans($heatcolourword); ?></span>
When the AJAX routine executes, the innerHTML for <span> id="ajaxheatcolorword" is changed and displayed with the border/color.

And no, I don't plan on adding the PHP equivalent of the code to the dashboard...
Ok, so there is a way to get this border/colour to be displayed then?

Ok, I can't understand why not because it just looks silly not showing up and then showing up not one or the other...
It appears looking at Ken's response is that the css class is contained with the ajax formatting. It's been like this since I've been using the template (as far back as 2010; maybe earlier).

I think someone's OCD may be showing. ;)
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Colour won't display around "Cool"

Post by William Grimsley »

BigOkie wrote:
William Grimsley wrote:
saratogaWX wrote:The ajax-dashboard.php has no formatting built-in for the $heatcolourword display. The HTML/PHP for that display is

Code: Select all

                  <span class="ajax" id="ajaxheatcolorword">
                    <?php  langtrans($heatcolourword); ?></span>
When the AJAX routine executes, the innerHTML for <span> id="ajaxheatcolorword" is changed and displayed with the border/color.

And no, I don't plan on adding the PHP equivalent of the code to the dashboard...
Ok, so there is a way to get this border/colour to be displayed then?

Ok, I can't understand why not because it just looks silly not showing up and then showing up not one or the other...
It appears looking at Ken's response is that the css class is contained with the ajax formatting. It's been like this since I've been using the template (as far back as 2010; maybe earlier).

I think someone's OCD may be showing. ;)
I do not have OCD! You're the first person to say that I have OCD, I have Aspergers not OCD, ok? :cry:
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Colour won't display around "Cool"

Post by William Grimsley »

Hi guys,

Someone was nice enough to provide me the correct PHP code to display what I wanted...

Thank you! :D

Thanks,

William
Post Reply