Difference between revisions of "Team:Heidelberg/Sandbox19"

(Created page with "<html> <script src="http://stuk.github.io/jszip/dist/jszip.js"></script> <script src="http://stuk.github.io/jszip/vendor/FileSaver.js"></script> <script src="https://ajax....")
 
Line 12: Line 12:
 
     if (this.readyState == 4) {  
 
     if (this.readyState == 4) {  
 
         if(this.status == 200){
 
         if(this.status == 200){
       response = this.responseText;
+
       response = JSON.parse(this.responseText);
console.log(JSON.parse(response));
+
  
  
var weights_name = Object.keys(this.responseText);
 
  
console.log(weights_name[]);
+
var weights_name = Object.keys(response);
 +
 
 +
 
 
for(var i=0; i<weights_name.length; i++) {
 
for(var i=0; i<weights_name.length; i++) {
 
               var ref_to_link = response[weights_name[i]].filename;
 
               var ref_to_link = response[weights_name[i]].filename;

Revision as of 10:38, 31 October 2017