-
Notifications
You must be signed in to change notification settings - Fork 0
/
interface.html
33 lines (32 loc) · 941 Bytes
/
interface.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
<script type="text/javascript">
$(function(){
$('#get').click(function() {
$.get('proxy.php', {meth:'GET', srv:$('#server').val(), prt:$('#port').val(), pth:$('#key').val()},
function(data) { $('#value').val(data); }, 'text'
);
return false;
});
$('#set').click(function() {
$.get('proxy.php', {meth:'POST', srv:$('#server').val(), prt:$('#port').val(), pth:$('#key').val(),
cnt:$('#value').val()});
$('#value').val('');
return false;
});
});
</script>
</head>
<body>
<form>
Server: <input type="text" id="server" /><br />
Port: <input type="text" id="port" /><br />
Key: <input type="text" id="key" /><br />
Value: <br />
<textarea id="value" cols="80" rows="10"></textarea><br />
<button name="get" id="get">Get</button> <button name="set" id="set">Set</button>
</form>
</body>
</html>