Add: writing_info.php

This commit is contained in:
2019-07-11 21:57:05 +09:00
parent 33ac149831
commit 5d1090e652
8 changed files with 112 additions and 127 deletions
+17
View File
@@ -71,4 +71,21 @@ DBService.prototype.requestWritingPlayerList = function(onSucceededListener, onF
}).bind(this)
);
xhr.send("maestroID=" + this.maestroID + "&playerID=" + this.playerID);
}
DBService.prototype.requestWritingInfo = function(writingID, onSucceededListener, onFailedListener) {
var xhr = this.makeXhr(
"php/writing/writing_info.php",
(function() { // onreadystatechange
if(xhr.readyState == 4 && xhr.status == 200) {
var replyJSON = JSON.parse(xhr.responseText);
if(replyJSON != null)
onSucceededListener(replyJSON);
else
onFailedListener(replyJSON);
}
}).bind(this)
);
xhr.send("writingID=" + writingID);
}