This is my situation:
I've loaded jsapi/visualization corechart, etc.
I make a call to any datasource (I've tried a public Google Doc and my private service) and when I make the call to an external data source, I believe that it's not passing a value. When I call response.isError in the callback function, it is reported as undefined. My code to the public spreadsheet is below:
<script>
function firstFunction() {
var myQuery = new google.visualization.Query(requestURL);
myQuery.send(createTable);
}
function createTable(response) {
if (response.isError()) {
alert('Error in query: ' + response.getMessage() + ' ' + response.getDetailedMessage());
return;
}
}
google.setOnLoadCallback(firstFunction());
</script>
The error that I see in Chrome's log is
Uncaught TypeError: Cannot call method 'isError' of undefined
Any advice or pointers would be greatly appreciated.
William