AnnualDataSummary: Difference between revisions

m
→‎Understanding the Basics: Clarification re jQuery versions
m (→‎Alternative JavaScript: made description much more concise)
m (→‎Understanding the Basics: Clarification re jQuery versions)
: In the <HEAD> section.....
<pre>&lt;link rel="stylesheet" type="text/css" media="screen" href="datasummary.css" /&gt;
&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.85/jquery.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="readDayfile.js" type="text/javascript"&gt;&lt;/script&gt;</pre>
: This loads the stylesheet; loads a jQuery library from Google servers (rather than having the file on your server, note later versions of jQuery are available, but not supported by old versions of Internet Explorer, amend the '1.5' used by DAJ if you want to); and loads the Javascript to build the table
: Once the page is loaded it runs readDayfile.js and will look for a DIV called 'tableData'; inserting the data table within it. You can change the DIV it inserts into (see later in this articleabove).
 
*for the PHP version
5,838

edits