added hello-data, renamed helloajax.js to sandbox.js

This commit is contained in:
alisolarflare 2017-06-10 09:24:40 -07:00
parent 9b687a6076
commit b847296619
2 changed files with 12 additions and 5 deletions

View file

@ -8,9 +8,12 @@ window.onload = function(){
document.getElementById('atom-players').innerHTML = JSON.stringify(data); document.getElementById('atom-players').innerHTML = JSON.stringify(data);
}); });
$.get("https://server.figytuna.com:8080/ali", function(data){ $.get("https://server.figytuna.com:8080/ali/hello/world", function(data){
console.log(data); document.getElementById('hello-world').innerHTML = data;
document.getElementById('button-hello').innerHTML = data; });
$.get("https://server.figytuna.com:8080/ali/hello/data", function(data){
document.getElementById('hello-data').innerHTML = data;
}); });
/* /*
let http = new XMLHttpRequest(); let http = new XMLHttpRequest();

View file

@ -4,7 +4,7 @@
<meta charset="utf-8"> <meta charset="utf-8">
<title>Developer's Sandbox</title> <title>Developer's Sandbox</title>
<script src="./resources/frameworks/jquery-3.2.1.min.js" type="text/javascript"></script> <script src="./resources/frameworks/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="./resources/sandbox/helloajax.js" type="text/javascript"></script> <script src="./resources/sandbox/sandbox.js" type="text/javascript"></script>
</head> </head>
<body> <body>
<nav> <nav>
@ -26,7 +26,11 @@
</tr> </tr>
<tr> <tr>
<td>Hello World</td> <td>Hello World</td>
<td><p id="button-hello"></p></td> <td id="hello-world"></td>
</tr>
<tr>
<td>Hello Data</td>
<td id="hello-data"></td>
</tr> </tr>
</table> </table>
</body> </body>