-
Notifications
You must be signed in to change notification settings - Fork 0
/
DemoDisplayAccount.html
52 lines (46 loc) · 1.4 KB
/
DemoDisplayAccount.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="Demostylesheet.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js">
</script>
<script>
function loadaccount() {
$.ajax({
type: "GET",
url: 'http://localhost:8080/loadaccount',
contentType: "application/json; charset=utf-8",
success: function(msg) {
console.log(msg);
$('#ListingCont').html(msg);
},
error: function(jgXHR, textStatus, errorThrown) {
console.log(textStatus);
alert("Error: " + textStatus + " " + errorThrown);
}
});
}
</script>
</head>
<body onload="loadaccount()">
<header>
<div class="container">
<a href="DemoMainPage.html">
<img class="logo" src="DragonPoolLogo.png">
</a>
<nav>
<ul>
<!-- Mian links to other pages -->
<li><a href="DemoDisplayAccount.html">ACCOUNT</a></li>
<li><a href="DemoCreateAccount.html">Sign IN</a></li>
<li><a href="DemoFormCreation.html">CREATE LISTING</a></li>
<li><a href="DemoListPage.html">SEARCH LISTING</a></li>
<li><a href="DemoContactPage.html">CONTACT</a></li>
</ul>
</nav>
</div>
</header>
<div class="ListingCont" id="ListingCont"></div>
</body>
</html>