summaryrefslogtreecommitdiff
path: root/web-static
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-22 14:15:10 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-22 14:15:10 (GMT)
commit34d536887eeb88e7b3d407a31332a13bb0bff5f5 (patch)
treea71af14b00ccbcbcc283a9275a63867d389408cb /web-static
parent458d8f30caca4267bae3733ab3ba1ba55419a14d (diff)
make uploadWeb part of session store - not finished yet
Diffstat (limited to 'web-static')
-rw-r--r--web-static/socket.html15
-rw-r--r--web-static/upload-form.html2
2 files changed, 1 insertions, 16 deletions
diff --git a/web-static/socket.html b/web-static/socket.html
index 206ab44..9b118ac 100644
--- a/web-static/socket.html
+++ b/web-static/socket.html
@@ -74,10 +74,6 @@
}
this.sock.onopen = this.sock_onopen.bind(this);
- this.sendbinmsg = function(data) {
- this.sock.send(data);
- }
-
this.cancel = function() {
this.sock.send(JSON.stringify({COMMAND: "cancel"}));
}
@@ -104,14 +100,6 @@
s = new Session(req);
}
- function sendbinmsg() {
- var byteArray = new Uint8Array(40*1024);
- for (var x = 0; x < byteArray.length; x++){
- byteArray[x] = x
- }
- s.sendbinmsg(new Blob([byteArray], {type: "application/octet-stream"}));
- }
-
function cancel() {
s.cancel();
}
@@ -124,7 +112,6 @@
function buttonsIdle() {
$('#buttonrun').removeAttr('disabled')
$('#buttonreconnect').removeAttr('disabled')
- $('#buttonbinmsg').attr('disabled','disabled')
$('#buttondetach').attr('disabled','disabled')
$('#buttoncancel').attr('disabled','disabled')
}
@@ -132,7 +119,6 @@
function buttonsRunning() {
$('#buttonrun').attr('disabled','disabled')
$('#buttonreconnect').attr('disabled','disabled')
- $('#buttonbinmsg').removeAttr('disabled')
$('#buttondetach').removeAttr('disabled')
$('#buttoncancel').removeAttr('disabled')
}
@@ -164,7 +150,6 @@
<input id="source" type="text" size="30" value="fake://10000">
<input id="refid" type="text" size="15" value="test-reference-id">
<button id="buttonrun" onclick="run()">start</button>
- <button id="buttonbinmsg" onclick="sendbinmsg()">send binary message</button>
<button id="buttondetach" onclick="detach()">detach</button>
<input id="sessionid" type="text" size="45">
<button id="buttonreconnect" onclick="reconnect()">reconnect</button>
diff --git a/web-static/upload-form.html b/web-static/upload-form.html
index 8910a37..c38037e 100644
--- a/web-static/upload-form.html
+++ b/web-static/upload-form.html
@@ -19,7 +19,7 @@
<form class="form-upload" method="post" action="/public/upload" enctype="multipart/form-data">
<table>
<tr><td class="label">Username</td><td><input type="text" name="LOGIN_NAME" size="20" value="heslinki" /></td></tr>
- <tr><td class="label">Token</td><td><input type="password" name="PASSWORD" size="20" /></td></tr>
+ <tr><td class="label">Session</td><td><input type="password" name="SESSION_ID" size="20" /></td></tr>
<tr><td class="label">File</td><td><input type="file" name="FILENAME" /></td></tr>
<tr><td>&nbsp;</td><td><input type="submit" name="submit" value="Submit"></td></tr>
</table>