Advertisement
Guest User

Untitled

a guest
Apr 13th, 2014
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <html>
  2. <head>
  3. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  4. <script>
  5. var xhr = new XMLHttpRequest(); //Request the data
  6. xhr.open('POST','http://gaben.capyspool.co.uk/gabencoin/public/index.php?page=api&action=getpoolstatus&api_key=72f3fd60d9a536215a6f6f92938592a60f919586635d7d0dedcf6a394888c435',true);
  7. xhr.send();
  8. xhr.onreadystatechange = function() {
  9. if (this.readyState === 4) { //When it's ready
  10. var data = JSON.parse(this.responseText); //Parse the data
  11. alert(document.getElementById('output').textContent = data.getpoolstatus.data.hashrate); //And here it is!
  12. }
  13. }
  14. </script>
  15. </head>
  16. <body>
  17. <div id="output"></div>
  18. </body>
  19. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement