-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrealdata.html
More file actions
38 lines (28 loc) · 1 KB
/
realdata.html
File metadata and controls
38 lines (28 loc) · 1 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 XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Ajax With Jquery</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(setInterval(function(){
$.ajax({
url: '/realtime.php',
type: "POST",
data: "server=localhost",
cache: true,
// dataType: "JSON",
success: function(response){
//console.log(response);
document.getElementById('leader-board').innerHTML = response
//
}
});
}, 1000));
</script>
</head>
<body>
<h2 id="leader-board"></h2>
</body>
</html>