*****************************************************************************
* Using AJAX with JavaScript, jQuery and JSON to graph data *
*****************************************************************************
+------------------+
| HTML / PHP files |
+------------------+
Location: /Canvas/html
Filename: top10.html
----------------------
Purpose: the launch page for the application
Features: 1) A section for an HTML5 Canvas with absolute positioning
2) Two other sections reserved for future use with the same
positioning. Intention would be to Ajax fetch previous and
next data, so that the three sections (all with canvas elemnts)
can be displayed or hidden to speed up the application.
3) The use of hidden elements to conveniently store some
data for convenient access.
Filename: ScrapingTop40.html
------------------------------
Purpose: To display some relevant HTML from http://top40-charts.com/, which
was screen scraped to get data.
Notes: The HTML author of this site did not write the easiest HTML to
scrape, i.e., invalid HTML structures, limited to no use of id
attributes, etc. However the data was free. The other possible
choice was Billboard's site, but for free, you could only get the
top 3 songs, not the top 10.
Filename: generateJSON.php
----------------------------
Purpose: Read contents of the top40-charts site, grab the title and artist
of the top 10 pop songs for 19 weeks in a row, and output JSON data
Parameters: Querystring parameter for the date of the starting chart
Features: 1) If the querystring is not set, it will begin scraping with the
current chart, othewise it will start on the specified date.
2) Includes a PHP library to manipulate the HTML DOM. The
technique used is to load all HTML elements of a given type
e.g., $html->find("option") to place all