I've tried that method as well:
console.log("about to send query");
query.send(function(response){
console.log("in response function");
if (response.isError()) {
alert(response.getMessage());
return;
}
var data = response.getDataTable();
...
});
The "about to send query" message is logged to the console but the "in
response function is not. Instead, I still get the Uncaught Error
message:
about to send query
Uncaught Error: google.visualization.Query: Internal Server Error
[500] -
default,browserchart,columnchart,barchart,piechart,table,gauge,annotatedtimeline
+en_US.I.js:151
Same thing if I move the console.log to after the if statement:
query.send(function(response){
if (response.isError()) {
alert(response.getMessage());
return;
}
console.log("in response function");
var data = response.getDataTable();
...
});
Really appreciate your time and your help!
Les
On Jun 27, 6:33 am, Jinji <
ji...@google.com> wrote:
> The query.send() function doesn't throw exceptions. Instead, in your
> response function (the one you pass to query.send), you should do:
>
> if (response.isError()) {
> alert(response.getMessage());
> return;}
>
> dataTable = response.getDataTable();
>
> I hope that helps.
>
> >
google-visualizati...@googlegroups.com<google-visualization-
api%2Bunsu...@googlegroups.com>
> > .