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 requestURL = 
'https://docs.google.com/spreadsheet/tq?range=A1%3AB4&key=0Ai0DL_Vhh-oKdFZaMDVTTG0wSU5OVnNtOUxlaWJZOUE&gid=0&headers=-1';
        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

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/qAPk5OfcLRIJ.
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.

Reply via email to