-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
30 lines (27 loc) · 695 Bytes
/
index.html
File metadata and controls
30 lines (27 loc) · 695 Bytes
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
<script src="/socket.io/socket.io.js"></script>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="//domain.loc:1336/jsonwebsocketrequest.js"></script>
<script>
$.ajax({
type: "POST",
url: "/some",
data: { name: "John", location: "Boston" },
success: function (data) {
console.log('John Boston:', data)
},
error: function (one, two, three) {
console.log('error', one, two, three)
}
})
$.ajax({
type: "POST",
url: "/some",
data: { name: "Jack", location: "NY" },
success: function (data) {
console.log('Jack NY:', data)
},
error: function (one, two, three) {
console.log('error', one, two, three)
}
})
</script>