While embedding the gadget in the google site, getting error as "TypeError:
google.visualization.GadgetHelper is not a constructor". Incidentally it
was working till recently but stopped working since few days back.
var queryString = prefs.getString("_table_query_url");
var gadgetHelper;
// Register our on-load handler for this gadget.
gadgets.util.registerOnLoadHandler(init);
// Entry point for our gadget.
function init() {
loadVisualizationAPI();
}
// Load the API we are using and kickoff a query.
function loadVisualizationAPI() {
google.load('visualization', '1', {'packages': ['table']});
google.setOnLoadCallback(sendQuery);
}
// Send and handle a query.
function sendQuery() {
gadgetHelper = new google.visualization.GadgetHelper();
var query = gadgetHelper.createQueryFromPrefs(prefs);
query.setQuery('select *');
query.send(handleQueryResponse);
}
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/6b5e3983-92ef-430c-9371-3a819152b69eo%40googlegroups.com.