Team:TU-Delft/SynBioData

From 2013.igem.org

(Difference between revisions)
Line 12: Line 12:
       function drawTable() {
       function drawTable() {
-
         var query = "SELECT 'Key Word' as id, " +
+
         var query = "SELECT 'Key Word' as Scoring, " +
-
        'FROM 0ArsDNt8sj-LBdEdCREdxUTFmVXpPaTVnZm43d0RTdmc';
+
            "'Receiving Team' as Receiving, 'Minute of goal' as Minute " +
-
        var team = document.getElementById('id').value;
+
            'FROM 1VlPiBCkYt_Vio-JT3UwM-U__APurJvPb6ZEJPg';
-
         if (id) {
+
;
-
           query += " WHERE 'Key Word' = '" + id + "'";
+
         if (team) {
 +
           query += " WHERE 'Key Word' = '" + team + "'";
         }
         }
         var queryText = encodeURIComponent(query);
         var queryText = encodeURIComponent(query);

Revision as of 13:22, 2 September 2013

Fusion Tables API Example: Google Chart Tools Data Table