I am trying to follow along with a tutorial I found to call data from my 
sheet into a webpage but i am getting no results.  I am new to using the 
API and am pretty much an infant in any kind of coding so dont know what I 
am doing wrong and would greatly appreciate it if someone could tell me 
what the heck I am doing wrong with this code?

Sorry if this looks sloppy.  Like i said I am baby at this stuff.
<html>
  <head>
    <script type="text/javascript" 
src="https://www.google.com/jsapi";></script>
    <script type="text/javascript">
    google.load('visualization', '1', {packages: ['table']});
    </script>
    <script type="text/javascript">
    var visualization;
    function drawVisualization() {
    var query = new 
google.visualization.Query('https://docs.google.com/spreadsheets/tq?key=1Hu1xJ-87QbyPyqe4iwxDVxmOl7pFYpLsn6hlOquFttQ&gid=1');
    query.setQuery('SELECT B'); 
query.send(handleQueryResponse);
} 
function handleQueryResponse(response) {
if (response.isError()) {
alert('error in query: ' + response.getMessage() + ' ' + 
response.getDetailedMessage());
return;
}
var data = response.getDataTable();
visualization = new 
google.visualization.Table(document.getElementById('visualization'));
visualization.draw(data, null);
}
google.setOnLoadCallback(drawVisualization);
</script>
    </head>    
  <body style="font-family: Arial;border:0 none;">
 <div id="visualization" style="height:400px; width:400px"></div>
<a 
href="https://docs.google.com/spreadsheets/d/1Hu1xJ-87QbyPyqe4iwxDVxmOl7pFYpLsn6hlOquFttQ/gviz/tq?tqx=out:html&amp;tq=select+B&amp;gid=2";>
sheet</a>  
  <a href="gcharts.html">Charts 1</a>
    <a href="gcharts2.html">Charts 2</a>
    <a href="gcharts3.html">Charts 3</a>
  </body>
</html>


-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Reply via email to