function createFromJSON(dom_id, url) {
    // HTTP request
    axios({
        method: 'get',
        url: url
    }).then(resp => {
        return resp.data;
    }).then(data => {
        var div = document.getElementById(dom_id)
        div.innerHTML = '';
        div.appendChild(buildHtmlTable(data));
    })
}
// Create table from self-hosted json files
Create table from self-hosted json files
Create table from self - hosted json files
function createFromJSON(dom_id, url) {
    axios({
        method: 'get',
        url: url
    }).then(resp => {
        return resp.data;
    }).then(data => {
        var div = document.getElementById(dom_id)
        div.innerHTML = '';
        div.appendChild(buildHtmlTable(data));
    })
}
function createFromJSON ( dom_id , url ) { axios ( { method : 'get' , url : url } ) . then ( resp => { return resp . data ; } ) . then ( data => { var div = document . getElementById ( dom_id ) div . innerHTML = '' ; div . appendChild ( buildHtmlTable ( data ) ) ; } ) }
Create table from self-hosted json files
Create table from self - hosted json files
// HTTP request