Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

Layout Problem on ajax-dashboard.php!

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:

Layout Problem on ajax-dashboard.php!

Post by William Grimsley »

Hi Ken,

I'm pretty sure I mastered this non-layout issue before but now it's come back again. Though, I can't remember what I did.

The circular shape is where the problem is.
layoutproblem.jpg
Please help,

William
You do not have the required permissions to view the files attached to this post.
User avatar
saratogaWX
Posts: 1170
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: Layout Problem on ajax-dashboard.php!

Post by saratogaWX »

Will,

I don't see what the fuss is all about .. yes, the 'Wednesday Night' long string does seem to push the right boundary of the dashboard out a bit, but it's not overly noticeable to the casual observer (most users) of your website.

The cause is simple .. you'd updated your WU-forecast.php with the script mods from BJKiwi to have the linear display of icons.
His mod removed the <br /> in the icon before the word 'Night' so it no longer 'folds' automatically.

Live with the minor inconvenience or restore the original WU-forecast.php and live with that inconvenience.

In either case, it's not a major alarm emergency.
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: Layout Problem on ajax-dashboard.php!

Post by William Grimsley »

Hi Ken,

Thanks for your very quick reply!

Ah, I see! But, as I said I had somehow done this so it doesn't push the boundary over when it showed Wednesday Night...
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Layout Problem on ajax-dashboard.php!

Post by BCJKiwi »

Ken, Will,
Sorry about the unforeseen effect of my changes, As you will be aware I don't actually have the WU forecast icon on my page having replaced the 'Outlook' section with a 'Cloud' section.

However, shouldn't the long text wrap automatically as it does in the moon section?
User avatar
saratogaWX
Posts: 1170
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: Layout Problem on ajax-dashboard.php!

Post by saratogaWX »

Will had modified the ajax-dashboard so it produces the oddly conflicting specs for alignment:

Code: Select all

		    <table border="0" cellpadding="2" cellspacing="0">
              <tr>
                <td class="data1" align="left" style="font-size: 8pt; border:none;text-align: center" align="left">
				  Thursday<br/><img src="./forecast/images/ra30.jpg" width="55" height="58" 
  alt="Rain" title="Rain"/><br/>Rain			   </td>
              </tr>
            </table>
in the resultant HTML. Having two align="left" and a style with 'text-align: center' in it may create some confusion in the browser about what to do when the width of the text exceeds the pixels computed to display the data.

HTML with syntax errors or conflicting specifications may yield unanticipated results.

You're correct that the text will usually wrap at a space (if allowed) to fit the bound given.

Best regards,
Ken
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: Layout Problem on ajax-dashboard.php!

Post by William Grimsley »

Hi Ken/BCJKiwi,

Sorry, for making you confused. I have replaced the WU-forecast.php script with the latest script (with no mods). I am happy now, as the layout problem won't appear again! Also, that stylistic want I had a few months ago, doesn't seem to apply to me anymore. :D

Thanks for your help,

William
User avatar
saratogaWX
Posts: 1170
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: Layout Problem on ajax-dashboard.php!

Post by saratogaWX »

You still have the HTML errata, so your page no longer validates as XHTML 1.0-Transitional.

Keep in mind that pages that do not validate also do not appear the same in all browsers as each browser has a slightly different fallback mechanism to cope with HTML errors and attempt to display what you'd instructed it to do.
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: Layout Problem on ajax-dashboard.php!

Post by William Grimsley »

Hi Ken,

I have now modified the ajax-dashboard.php file. So, the index.php file now validates as XHTML 1.0-Transitional! :D

Thanks for your help,

William
Post Reply