Difference between revisions of "Dev/Results"
m (forgot renaming a variable) |
(grr. track didn't work. debugging) |
||
Line 56: | Line 56: | ||
for (i = 0; i < arrayOfTeams.length; i++) { | for (i = 0; i < arrayOfTeams.length; i++) { | ||
var teamObj = jQuery.extend(arrayOfTeams[i], extraTeamInfo[i]); | var teamObj = jQuery.extend(arrayOfTeams[i], extraTeamInfo[i]); | ||
+ | console.log(teamObj); | ||
//Take care of any teams that didn't win any awards | //Take care of any teams that didn't win any awards | ||
if (teamObj.awards.length == 0) { | if (teamObj.awards.length == 0) { | ||
Line 73: | Line 74: | ||
jQuery(document).ready(function() { | jQuery(document).ready(function() { | ||
//Request team data | //Request team data | ||
− | + | teamsRequest = jQuery.ajax({ | |
url: "https://igem.org/aj/team_list.cgi", | url: "https://igem.org/aj/team_list.cgi", | ||
type: "GET", | type: "GET", | ||
Line 80: | Line 81: | ||
data: {command: "get_team_list", year: "2015"}, //**Make this auto-update itself | data: {command: "get_team_list", year: "2015"}, //**Make this auto-update itself | ||
error: function(jqxhr, textStatus, errorThrown) { | error: function(jqxhr, textStatus, errorThrown) { | ||
− | alert("Failed to get list of teams"); | + | alert("Failed to get list of teams. look at var teamsRequest"); |
}, | }, | ||
}); | }); | ||
//Request the awards data | //Request the awards data | ||
− | + | awardsRequest = jQuery.ajax({ | |
url: 'https://igem.org/awards/json_dump.cgi', | url: 'https://igem.org/awards/json_dump.cgi', | ||
type: 'GET', | type: 'GET', | ||
Line 90: | Line 91: | ||
dataType: "json", | dataType: "json", | ||
error: function(jqxhr, textStatus, errorThrown) { | error: function(jqxhr, textStatus, errorThrown) { | ||
− | alert("AJAX error; look at var | + | alert("AJAX error; look at var awardsRequest"); |
}, | }, | ||
}); | }); |
Revision as of 20:35, 23 September 2015
Comprehensive Results from iGEM 2015
View: [All Teams] [Award Winners] | [Africa] [Asia] [Europe] [Latin America][other?]
Team | Award |
---|