Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- <script>
- $(document).ready(function(){
- $("button").click(function(){
- $.get("http://165.227.74.3:8082/listUsers", function(data, status){
- var obj = JSON.parse(data)
- document.getElementById("demo").innerHTML =
- console.log(obj);
- alert("Data: " + data + "\nStatus: " + status);
- });
- });
- });
- </script>
- </head>
- <body>
- <p id="demo">test</p>
- <button>Send an HTTP GET request to a page and get the result back</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement