Posts

Showing posts from June 4, 2019

API Access HTML/Javascript problem

Image
3 I have an issue trying to use javascript to get the circulating supply by requesting data from Tzscan API: HTML code to request the circulating supply: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>JS Bin</title> </head> <body> <h1>There Tezos Circulating : </h1> <div id="getapi"></div> </body> </html> Javascript Code to get the data from the API: <script> function createNode(element) { return document.createElement(element); } function append(parent, el) { return parent.appendChild(el); } const ul = document.getElementById('getapi'); const url = ...