AnnualDataSummary: Difference between revisions

m
→‎Alternative JavaScript: Added "advantages ... revision..."
m (→‎Version Control: added 1.2)
m (→‎Alternative JavaScript: Added "advantages ... revision...")
[[User:Sfws| this section only is by sfws]] 12:15, 31 December 2012 (UTC)
*An [http://sandaysoft.com/forum/viewtopic.php?f=18&t=8690 alternative Javascript/jQuery solution] is in the 3rd party tools sub forum within the Cumulus forum.
*This alternative JavaScript version works correctly at the start of a new year (for my forum version the ''default year reflects the latest year on the dayfile.txt'', not). (as theThe original DAJ version uses) the current calendar year in the viewer's time zone).
*Also like the revised 1.2 PHP version, the alternative JavaScript version will pass validation, as all the coding is to the latest standards (ECMA-292, CSS3, HTML5). The original PHP and JS versions below, use non-standard attributes to handle for example the highlighting facility.
*Unlike the original DAJ version below, themy alternative JavaScript version only reads the '''[dayfile.txt]''' ''once'', however many times you choose a different data set (called category in the forum version) or a different year. It also ''avoids redrawing the table if the year is changed''. So themy alternative is thus considerably faster, especially with large dayfile.txt files (and changes of data set or year).
*For greater ease of customisation, the forum version uses a different sequence in ''''label_items'''', and includes the ability to apply your own formatting according to value for any selected datasetcategory. The forum example includes colour rainfall rate according to intensity groups used by UK Meteorological Office.
 
*(NB - As mentioned in forum; currently a further improvement to the alternative version is planned placing a redesigned 'label_items' in the HTML (so much easier to edit), and although subsequently successfully implemented on my PC, I am unable in my present location to make it work in a releasable version).
Advantages of latest revision [[User:Sfws|Sfws]] 16:50, 29 January 2013 (UTC)
*If you select the new version, it includes a CSS, but you may want to combine that with your existing CSS to make the new page match your existing pages. It includes HTML, but again that will need tailoring to match your other pages, but the HTML in the forum does offer the ability to display the raw dayfile.txt if JavaScript is not enabled in the viewer's browser.
*By placing a redesigned 'label_items' in the HTML (so much easier to edit), the new version makes it easier to add new criterions and adapt to any future changes in [[dayfile.txt]].
*One site using this alternative code in January 2013, with its own look to the page, is [http://sassafras.id.au/projects/weather/dailyrecords.shtml found here].
*A number of headings and messages are defined in the HTML, but used by the script. This arrangement makes the new version more informative, but preserves the ability to tailor to your preferences on wording and language.
*If you select the new version, it includes a CSS, butbased youon maythe wantstandard toCumulus combineone, thatbut withyou yourmay existing CSSwant to make the new page match your existing pages. It includes HTML compatible with standard Cumulus pages (it does not need any Cumulus processing), but again that willmay need tailoring to match your other pages, but the HTML in the forum does offer the ability to display the raw dayfile.txt if JavaScript is not enabled in the viewer's browser.
*One site using this alternative code in January 2013 a variant based on this alternative code, with its own look to the page, is [http://sassafras.id.au/projects/weather/dailyrecords.shtml found here].
 
== Original Fileset ==
5,838

edits