I've read through this group as well as the documentation for the
Visualization API and I still cannot figure out why I am getting a
'request timed out' when I try to run this simple program.
The browser and OS don't seem to make a difference (I've tried Mac OS
Firefox 3.0, Win XP Pro Firefox 3.0, Win XP Server Firefox 2.0). Each
time I get this same error:
Error: missing } in XML expression
Source File:
http://spreadsheets.google.com/pub?key=poAg-4S6PGg8xhw1OVp3YLA&pub=1&tqx=reqId%3A0
Line: 6, Column: 25
Source Code:
background-color: #ffdb69;
Here is the code I am using:
<html>
<head>
<script type="text/javascript" src="
http://www.google.com/jsapi"></
script>
<script type="text/javascript">
google.load("visualization", "1");
google.setOnLoadCallback(initialize);
function initialize() {
var query = new google.visualization.Query('http://
spreadsheets.google.com/pub?key=poAg-4S6PGg8xhw1OVp3YLA&pub=1');
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>
Any thoughts? Thanks.