Your Name 4 jaren geleden
bovenliggende
commit
11ccf7c537
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3 3
      similar_web/index.html

+ 3 - 3
similar_web/index.html

@@ -137,7 +137,8 @@
     axios.get('http://www.googo.org:8080/domain/'+qry)
     axios.get('http://www.googo.org:8080/domain/'+qry)
   .then((response) => {
   .then((response) => {
     var sitename = document.getElementById('sitename');
     var sitename = document.getElementById('sitename');
-    sitename.innerHTML =response.data.SiteName;
+    var obj = JSON.parse(response.data);
+    sitename.innerHTML =obj.SiteName;
 
 
     //    sitename.innerHTML =response.data
     //    sitename.innerHTML =response.data
 
 
@@ -146,8 +147,7 @@
     console.log(response.statusText);
     console.log(response.statusText);
     console.log(response.headers);
     console.log(response.headers);
     console.log(response.config);
     console.log(response.config);
-    alert(response.data);
-    alert(response.data.SiteName);
+    alert(obj);
 
 
   });
   });