aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAche <ache@ache.one>2016-09-11 05:47:04 +0200
committerAche <ache@ache.one>2016-09-11 05:47:04 +0200
commit2df8cd0bc9c986857bef7ede90fe51b8000e8aaf (patch)
tree58d17539ae2b3e4ed9b719fd6e48e0c45000f3c7
parentCommit de test du chargement par comboBox (diff)
test
-rw-r--r--synhestesis.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/synhestesis.js b/synhestesis.js
index c5e378b..c2da8f0 100644
--- a/synhestesis.js
+++ b/synhestesis.js
@@ -22,8 +22,10 @@ asPass = false
function selectChange(evt) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {
- if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
+ if (xmlHttp.readyState == 4 && xmlHttp.status == 200) {
+ alert(xmlHttp.responseText)
loadFile(xmlHttp.responseText);
+ }
}
xmlHttp.open("GET", "http://ache.one/shared/synhestesis/" + select.selectedIndex, true);
xmlHttp.send(null);