-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path:user:signup-post.html
More file actions
38 lines (30 loc) · 1.32 KB
/
:user:signup-post.html
File metadata and controls
38 lines (30 loc) · 1.32 KB
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- saved from url=(0052)http://14.63.171.66:8081/tleafstructure/user/signup? -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>User Signup Page</title>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
function push() {
console.log(this.email1);
var url = "http://localhost:8080/user/signup";
$.ajax({
type : 'POST',
url : url,
async : true,
contentType : 'application/json',
data : '{ "email":"susu@daum.net" , "password":"12345" , "nickname":"yoon" , "gender":"male" , "age":15 }' ,
success : function(response) {
console.log(response);
alert(response);
},
error : function(xhr) {
alert('Error! Status = ' + xhr.status + " Message = "
+ xhr.statusText);
}
});
}
</script>
</head>
<body>
<button onClick="javascript:push()"></button>
</body></html>