Difference between revisions of "User:Vinoo/SafetyJSONv2"

m
m
Line 9: Line 9:
 
//initialize form_info
 
//initialize form_info
 
var form_info = {};
 
var form_info = {};
form_info.name="2016_check_in";
+
form_info.name = "2016_check_in";
 +
form_info.year = "2016";
 
form_info.ajax_URL = "https://2016.igem.org/cgi/forms/form.cgi";
 
form_info.ajax_URL = "https://2016.igem.org/cgi/forms/form.cgi";
  
function get_team_list() {
+
function get_team_list(form_info) {
 
jQuery.ajax({
 
jQuery.ajax({
 
url: "https://igem.org/aj/team_list.cgi",
 
url: "https://igem.org/aj/team_list.cgi",
Line 23: Line 24:
 
},
 
},
 
success: function(team_data, textStatus, jqXHR) {
 
success: function(team_data, textStatus, jqXHR) {
console.log("Success: Received to get team list");
+
console.log("Success: Received team list");
 
put_teams_in_table(team_data);
 
put_teams_in_table(team_data);
 
}
 
}
Line 39: Line 40:
  
 
$(document).ready(function(){
 
$(document).ready(function(){
get_team_list();
+
get_team_list(form_info);
 
})
 
})
 
</script>
 
</script>

Revision as of 18:04, 10 August 2017

Team Name Country* Region Track Kind Check-Ins