Hi there,
I am experimenting with the visualization api and cannot get my example
working. What is going wrong? It should be so easy, so it's a little
frustrating by now.... ;-). I now get a time-out..?
Can you help? Thx in advance!
-----------------
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"
></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:['table']});
google.setOnLoadCallback(drawTable);
function drawTable() {
var query = new google.visualization.Query(
'https://docs.google.com/spreadsheets/d/1jXJaMzzRdFyogoCFZjPTUJDhhWkuEBiXrtNL_ZG3FX0'
);
query.send(handleQueryResponse);
}
function handleQueryResponse(response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' + response.
getDetailedMessage());
return;
}
var data = response.getDataTable();
var table = new google.visualization.Table(document.getElementById(
'table_div'));
table.draw(data, {showRowNumber: true});
}
</script>
</head>
<body>
<div id="table_div"></div>
</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.