Hi, I'm trying to view a visualization table via iGoogle Gadget,
I've used all available examples and information on the API pages but
still gets a timeout for my requests...
Now even running the simple example when the datasource is a
spreadsheet doesn't work...
Once I get this one working, I'll simply implement the response to
match my own python datasource implementation
(That will be written here once you guys point me to what i'm doing
wrong :) )
The client side:
function search_test() {
var url = 'http://spreadsheets.google.com/tq?key=pxk4YcSK2-
L24X8uhC7bNPg&range=A2:B4&gid=0';
var query = new google.visualization.Query(url);
// 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();
var table = new google.visualization.Table
(document.getElementById('main_div'));
table.draw(data, {page: 'enable', pageSize: 15});
}
Thanks a lot.
Chen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---