Sandaysoft

Support forum for Cumulus weather station software
It is currently Fri May 24, 2013 12:47 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Tue Mar 15, 2011 7:23 pm 
Offline

Joined: Tue Jan 26, 2010 8:54 am
Posts: 107
Location: Mayenne, France
Weather Station: Maplin N96GY
Operating System: Vista Home Premium SP2
Hi David, thanks for this great add-on. Very neat. I'm going to use it with highlighting to show the frost days at a glance, for the gardener in the family.

I notice that when the PHP version is rendered in Firefox it shows 730 errors.
line 172 column 24 - Warning: <td> proprietary attribute "datarow"
line 172 column 24 - Warning: <td> proprietary attribute "datacol"

Tag contains an attribute that is proprietary to IE or Netscape.

Is there any way round this to get my green tick, or is JS the answer?

_________________
Many thanks
Helen

La Locherie Weather


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Tue Mar 15, 2011 9:08 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
Hi Helen,

I take it you have some kind of validator installed on FF? It certainly renders fine in FF so no one else need panic!

The warnings are because I am using custom attributes to tag each cell in the table -- when you hover over a value in the table Javascript will use the attributes to get the location and highlight the column and row header.

Does exactly the same in the JS version but it will validate perfectly as I insert the table into the html document after the page has fully loaded, and most validator do not care about what happens at that point :D

I can maybe look at re-working the php version a little

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Tue Mar 15, 2011 10:06 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
Helen

Don't say I am not good to you :lol: ...... a new readDayfile.php which fully validates and works as per the existing version but with a bit more sophisticated coding to remove the need for custom attributes in the HTML

(remember to check the variables at the top -- $dayfile, and the delimiters)


You do not have the required permissions to view the files attached to this post.

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Tue Mar 15, 2011 10:16 pm 
Offline

Joined: Tue Jan 26, 2010 8:54 am
Posts: 107
Location: Mayenne, France
Weather Station: Maplin N96GY
Operating System: Vista Home Premium SP2
Good grief. I was just replying to say the page did indeed render fine, I just use the FF HTML validator plug in to validate my HTML, I was very grateful for what you had produced and whether you did any rework was of course up to you.

But you beat me to it, you're a genius - and so fast. Thanks so much for your work. :clap: You are indeed very good to all of us.

_________________
Many thanks
Helen

La Locherie Weather


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Tue Mar 15, 2011 10:31 pm 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
Hillbilly wrote:
You are indeed very good to all of us.
He is, all in 58 minutes! :clap:

_________________
Paul

http://www.greatcollegestreet.co.uk -Online
http://www.lehamel.eu - Online

Image Image


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Tue Mar 15, 2011 10:37 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
LOL. After I replied to Helen the problem was irritating me so I thought "I better just get it fixed" !! :P

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Wed Mar 16, 2011 1:19 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
daj wrote:
LOL. After I replied to Helen the problem was irritating me so I thought "I better just get it fixed" !! :P
Good thing you did ... otherwise you would have heard (read) from me... :mrgreen:

I have not tried the latest release yet (will do that later on), but it better validate properly with W3C... :twisted:

I have modified the (old) PHP code somewhat and have included the yearly data into the 'PHP/AJAX Website Template Set' as seen on this [link removed] page. Oh, full credit is also given to the designer... :D


Last edited by gemini06720 on Wed May 22, 2013 10:35 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Wed Mar 16, 2011 6:23 pm 
Offline
User avatar

Joined: Tue Jul 29, 2008 8:00 pm
Posts: 2001
Location: Thornhill, Dumfries, UK
Weather Station: WH1081
Operating System: Mac OSx & Win 7
gemini06720 wrote:
daj wrote:
I have not tried the latest release yet (will do that later on), but it better validate properly with W3C... :twisted:

Indeed it does :D

http://validator.w3.org/check?uri=http%3A%2F%2Fgrantownweather.co.uk%2Fhistoric%2FnewdataSummary.php

_________________
David
Contact Me


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Wed Mar 16, 2011 6:30 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17599
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
daj wrote:
Indeed it does :D

Phew. Potential international incident nicely avoided.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Wed Mar 16, 2011 8:19 pm 
Offline

Joined: Tue Jan 26, 2010 8:54 am
Posts: 107
Location: Mayenne, France
Weather Station: Maplin N96GY
Operating System: Vista Home Premium SP2
Synewave wrote:
Hillbilly wrote:
You are indeed very good to all of us.
He is, all in 58 minutes! :clap:

But of course we all know David has banks of support staff wearing headsets, so a couple of them were probably free and did it for him while he was watching the footie. ;)

No errors in FF now, very happy thanks David.

_________________
Many thanks
Helen

La Locherie Weather


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Wed Mar 16, 2011 10:35 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
steve wrote:
Phew. Potential international incident nicely avoided.
And who knows, it might have eventually lead to a complete international meltdown... :twisted:


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Wed Mar 16, 2011 10:48 pm 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
daj wrote:
gemini06720 wrote:
daj wrote:
I have not tried the latest release yet (will do that later on), but it better validate properly with W3C... :twisted:

Indeed it does :D
David, please correct me if I have missed something here... :o

I looked at the time you released the 'readDayfile.zip' file ... the message indicates it was 14:06 on March 15th, 2011, that would be your time (and not my time as I am always 7 hours too early) ... were you not suppose to be at work at that time and earning some money to feed your starving family members... :mrgreen:


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Wed Mar 16, 2011 11:06 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17599
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
gemini06720 wrote:
were you not suppose to be at work at that time and earning some money to feed your starving family members... :mrgreen:
David probably does the same as I do and multi-tasks during the day, which is how I manage to do Cumulus support at all hours of the day, assuming I'm awake. It does mean (in my case, anyway) that my working day is effectively extended to compensate.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Thu Mar 17, 2011 12:32 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
steve wrote:
...multi-tasks during the day, which is how I manage to do Cumulus support at all hours of the day, assuming I'm awake. It does mean (in my case, anyway) that my working day is effectively extended to compensate.
Steve, are you not 'working' from your little corner of paradise called home? :D


Top
 Profile  
 
 Post subject: Re: Yearly Data Summary PHP Page - HTML Errors
PostPosted: Thu Mar 17, 2011 1:27 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1772
Location: World...
Weather Station: No weather station
Operating System: No operating system
David, an international incident has been avoided... :D

I have incorporated the modifications you made Tuesday to the 'readDayfile.php' script into my own customised script, added the required translation functions and now have a fully bilingual (english and french) [link removed] page for the 'PHP/AJAX Website Template Set' ... ;)


Last edited by gemini06720 on Wed May 22, 2013 10:36 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: laulau and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group