javascript - Jquery output simple data from a google spreadsheets Json database (FIXED) -
this question has answer here:
so how output simple data google spreadsheets
var output = document.getelementbyid('output'); // output.innerhtml = 'test output works!!'; $.getjson("https://script.google.com/macros/s/akfycbygukdw3tt8scpcfdlkmnmunu9bh5fpt7bkv50p2bm/exec?id=1fxsvw5ftcx47dgrxrx1epsb5fberjymc8jinr980bsy&sheet=price+idr", function(data){ var price = data["price idr"]; console.log(price); // output.innerhtml = price["0"]["(20s)_color"]; document.getelementbyid("output").innerhtml = price["0"]["(20s)_color"]; });
<!doctype html> <html> <head> <meta charset="utf-8"> <title>testing prices</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> </head> <body> <div id="output">json prices not working still!!</div> </body> </html>
any im doing wrong appreciated.
Comments
Post a Comment