Add: writing_info.php
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user