-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.htm
53 lines (53 loc) · 1.43 KB
/
default.htm
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script type="text/javascript">
function test() {
$.ajax({
url: $("#address").val(),
type: $("#verb").val(),
data: $("#content").val(),
dataType: "text",
success: function (d, status, xhr) {
//$("#result").val(JSON.stringify(d));
$("#result").val(d);
}
});
}
</script>
</head>
<body>
<table>
<tr>
<td>address</td>
<td>
<input type="text" id="address" value="rest/" size="100"/>
</td>
</tr>
<tr>
<td>verb</td>
<td>
<input type="text" id="verb" value="GET" size="100"/>
</td>
</tr>
<tr>
<td>content</td>
<td>
<input type="text" id="content" size="100" />
</td>
</tr>
<tr>
<td colspan="2">
<input type="button" onclick="test()" value="invoke" />
</td>
</tr>
<tr>
<td colspan="2">
<textarea id="result" rows="10" cols="80"></textarea>
</td>
</tr>
</table>
</body>
</html>