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
+2 -2
View File
@@ -37,8 +37,8 @@ function TypingExamButton(x, y, iconName, buttonText, writingID) {
TypingExamButton.prototype.onClick = function() {
sessionStorageManager.setWritingID(this.writingID);
// location.href = '../../web/client/typing_examination.html';
printSessionStorage();
location.href = '../../web/client/typing_examination.html';
// printSessionStorage();
}
+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);
}