My mistake. Version 47 already included the deletion. But there are several older versions available. See https://developers.google.com/chart/interactive/docs/release_notes#official-releases
On Sat, Jun 20, 2020 at 1:19 AM Pandurang Yachwad < [email protected]> wrote: > Thank you Daniel for quick response and updates about load library. > > I tried updating the library but still getting error with GadgetHelper > even with version 47. Could you let me know any way to work with > GadgetHelper? if not, what's the alternative to it? > > > On Friday, June 19, 2020 at 7:09:41 PM UTC-5, Daniel LaLiberte wrote: >> >> 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-code >> >> Also, 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 <[email protected]> >> 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 [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 >>> <https://groups.google.com/d/msgid/google-visualization-api/6b5e3983-92ef-430c-9371-3a819152b69eo%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> >> [email protected] Cambridge MA >> >> -- > 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/9d6e7c2c-16ef-4898-b036-7c8a8ee95dddo%40googlegroups.com > <https://groups.google.com/d/msgid/google-visualization-api/9d6e7c2c-16ef-4898-b036-7c8a8ee95dddo%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> [email protected] <[email protected]> Cambridge MA -- 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/CAOtcSJO%3DL27_P4FC870tKA9FJ%2BMh464F9rmV_pi1B68EOTNwNQ%40mail.gmail.com.
