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 google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6b5e3983-92ef-430c-9371-3a819152b69eo%40googlegroups.com.
The jsapi loader is now being redirected to the new loader. You should update how you load the library, as documented here: https://developers.google.com/chart/interactive/docs/basic_load_libs#update-library-loader-codeAlso, the GadgetHelper was removed, though it is still documented. I'm not sure we can bring it back, due to security concerns, but I'll look into it. In the meantime, you should be able to load version '47' to see the previous behavior.
On Fri, Jun 19, 2020 at 5:16 PM Pandurang Yachwad <panduran...@gmail.com> wrote:
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 google-visualization-api+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6b5e3983-92ef-430c-9371-3a819152b69eo%40googlegroups.com.
--
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/6b5e3983-92ef-430c-9371-3a819152b69eo%40googlegroups.com.
--
--
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 google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/9d6e7c2c-16ef-4898-b036-7c8a8ee95dddo%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO%3DL27_P4FC870tKA9FJ%2BMh464F9rmV_pi1B68EOTNwNQ%40mail.gmail.com.