Page 1 of 2
Yearly Data Summary PHP Page - HTML Errors
Posted: Tue 15 Mar 2011 7:23 pm
by Hillbilly
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?
Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Tue 15 Mar 2011 9:08 pm
by daj
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
I can maybe look at re-working the php version a little
Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Tue 15 Mar 2011 10:06 pm
by daj
Helen
Don't say I am not good to you

...... 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)
Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Tue 15 Mar 2011 10:16 pm
by Hillbilly
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.

You are indeed very good to all of us.
Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Tue 15 Mar 2011 10:31 pm
by Synewave
Hillbilly wrote:You are indeed very good to all of us.
He is, all in 58 minutes!

Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Tue 15 Mar 2011 10:37 pm
by daj
LOL. After I replied to Helen the problem was irritating me so I thought "I better just get it fixed" !!

Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Wed 16 Mar 2011 1:19 pm
by gemini06720
daj wrote:LOL. After I replied to Helen the problem was irritating me so I thought "I better just get it fixed" !!

Good thing you did ... otherwise you would have heard (read) from me...
I have not tried the latest release yet (will do that later on), but it better validate properly with W3C...
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...

Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Wed 16 Mar 2011 6:23 pm
by daj
gemini06720 wrote:daj wrote:I have not tried the latest release yet (will do that later on), but it better validate properly with W3C...
Indeed it does
http://validator.w3.org/check?uri=http% ... ummary.php
Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Wed 16 Mar 2011 6:30 pm
by steve
daj wrote:Indeed it does
Phew. Potential international incident nicely avoided.
Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Wed 16 Mar 2011 8:19 pm
by Hillbilly
Synewave wrote:Hillbilly wrote:You are indeed very good to all of us.
He is, all in 58 minutes!

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.
Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Wed 16 Mar 2011 10:35 pm
by gemini06720
steve wrote:Phew. Potential international incident nicely avoided.
And who knows, it might have eventually lead to a complete international meltdown...

Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Wed 16 Mar 2011 10:48 pm
by gemini06720
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...
Indeed it does
David, please correct me if I have missed something here...
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...

Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Wed 16 Mar 2011 11:06 pm
by steve
gemini06720 wrote:were you not suppose to be at work at that time and earning some money to feed your starving family members...

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.
Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Thu 17 Mar 2011 12:32 am
by gemini06720
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?

Re: Yearly Data Summary PHP Page - HTML Errors
Posted: Thu 17 Mar 2011 1:27 am
by gemini06720
David, an international incident has been avoided...
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' ...
