Is this what you mean?
function drawVisualization() {
var query = new google.visualization.Query('
http://spreadsheets.google.com/tq?key=tkPt9Ikb_Ri_WFdHuq7RUjQ');
// Send the query with a callback function.
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('table'));
visualization.draw(data, null);
}
Roni
On Tue, Jul 12, 2011 at 5:37 PM, David Rodger <[email protected]> wrote:
> Hi there
>
> How would i get the JSON object to display cells from a google
> spreadsheet:
>
> http://code.google.com/apis/ajax/playground/#json_data_table
>
> Even an example would be great.
>
> Hope someone can help
>
> Thanking you for your time
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.