Skip to content

Commit

Permalink
Initial commit task-#6
Browse files Browse the repository at this point in the history
  • Loading branch information
obamgbopa committed Sep 7, 2017
1 parent 70c015e commit 474a132
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions frontend/assets/js/request.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function showQuestion(str) {
var xmlhttp;
xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("txtHint").innerHTML =
this.responseText;
}
};
xmlhttp.open("GET", "https://coding101-e7ef0.firebaseapp.com/#/questions", true);
xmlhttp.send();
}

0 comments on commit 474a132

Please sign in to comment.