Current JSON/JQuery API script. Help. w/ syntax highlighting


SUBMITTED BY: Guest

DATE: Oct. 26, 2013, 9:31 p.m.

FORMAT: HTML

SIZE: 370 Bytes

HITS: 875

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>API shit</title>
  5. </head>
  6. <body>
  7. <h2>JSON API</h2>
  8. <script>
  9. $.getJSON('http://blockchain.info/ticker', function(data) {
  10. });
  11. document.getElementById(prices[0].15m).innerHTML=JSONObject.name
  12. </script>
  13. <p>
  14. BTC price in USD: <span id="prices[0].15m"></span><br />
  15. </p>
  16. </body>
  17. </html>

comments powered by Disqus