Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
frameTest1 authored Mar 6, 2024
1 parent 93480fc commit c98ab7e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,8 @@
xhr.onreadystatechange = function() {
if(this.readyState == this.DONE) {
//document.getElementById("response").innerHTML=this.status + this.response;
}
};
xhr.send(requestBody);


console.log()

console.log(typeof xhr.response,JSON.parse(xhr.response),xhr.response,)
var data = typeof xhr.response== "string"?JSON.parse(xhr.response):xhr.response
var responseData = data.result

Expand All @@ -102,6 +98,11 @@
console.log(responseData[i].u_message)
htmlContent.innerHTML = responseData[i].u_message
document.getElementById('content').appendChild(a)
}
};
xhr.send(requestBody);



}

Expand Down

0 comments on commit c98ab7e

Please sign in to comment.