On Fri, Sep 20, 2013 at 5:01 PM, asgallant <[email protected]>wrote:

> At a guess, I suspect it the problems are due to the comment lines in your
> javascript.  When you turned it into a gadget, everything got compacted
> into one line, making most of the code commented out:
>
> <script src="https://www.google.com/jsapi";
> type="text/javascript"></script> <div id="loading"><img src="
> http://www.google.com/ig/images/spinner.gif"; /></div> <div id="chartdiv"
> style="overflow: auto;"></div> <script type="text/javascript"> var prefs =
> new _IG_Prefs() var gadgetHelper = null; var chart = null;
> _IG_RegisterOnloadHandler(loadVisualizationAPI); // Load the Google
> Visualization API function loadVisualizationAPI() {
> google.load('visualization', '1', {'packages': ['corechart']});
> google.setOnLoadCallback(sendQuery); } // Send a data query. function
> sendQuery() { var title = prefs.getString('title'); if (title) {
> _IG_SetTitle(title); } gadgetHelper = new
> google.visualization.GadgetHelper(); var query =
> gadgetHelper.createQueryFromPrefs(prefs); query.send(handleQueryResponse);
> } // Get a query response. function handleQueryResponse(response) { var
> loaddiv= document.getElementById('loading'); if (loaddiv) {
> loaddiv.style.display = 'none'; } if
> (!gadgetHelper.validateResponse(response)) { alert('Boom !'); return; }; //
> Instantiate our Table chart. var theDiv =
> document.getElementById('chartdiv'); theDiv.style.width =
> document.body.clientWidth + 'px'; theDiv.style.height =
> document.body.clientHeight + 'px'; chart =
> google.visualization.BubbleChart(theDiv); var data =
> response.getDataTable(); chart.draw(data, {}); }; </script>
>
> Try removing all comments from the javascript and rebuilding the gadget.
>
>
Done , still getting the same problem ... anything else I have to try ?

Thanks for your reply

-- 
Regards,

Olemis - @olemislc

Apacheā„¢ Bloodhound contributor
http://issues.apache.org/bloodhound
http://blood-hound.net

Blog ES: http://simelo-es.blogspot.com/
Blog EN: http://simelo-en.blogspot.com/

Featured article:

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to