Team:TU-Delft/SynBioData

From 2013.igem.org

(Difference between revisions)
Line 12: Line 12:
       function drawTable() {
       function drawTable() {
-
         var query = "SELECT 'Scoring Team' as Scoring, " +
+
         var query = "SELECT 'Key Word' as Scoring, " +
             "'Receiving Team' as Receiving, 'Minute of goal' as Minute " +
             "'Receiving Team' as Receiving, 'Minute of goal' as Minute " +
             'FROM 1VlPiBCkYt_Vio-JT3UwM-U__APurJvPb6ZEJPg';
             'FROM 1VlPiBCkYt_Vio-JT3UwM-U__APurJvPb6ZEJPg';
         var team = document.getElementById('team').value;
         var team = document.getElementById('team').value;
         if (team) {
         if (team) {
-
           query += " WHERE 'Scoring Team' = '" + team + "'";
+
           query += " WHERE 'Key Word' = '" + team + "'";
         }
         }
         var queryText = encodeURIComponent(query);
         var queryText = encodeURIComponent(query);
Line 37: Line 37:
   <body>
   <body>
     <div>
     <div>
-
       <label>Scoring Team:</label>
+
       <label>Key Word:</label>
       <select id="team" onchange="drawTable();">
       <select id="team" onchange="drawTable();">
         <option value="">All</option>
         <option value="">All</option>

Revision as of 13:16, 2 September 2013

Fusion Tables API Example: Google Chart Tools Data Table