Hi Andrew and Jean-Marc, I investigated what is happening in the case that you leave out the callback. When there is no callback option, then the loader assumes it can do a direct load by writing a script tag at the time it is called, which causes the entire document to be overwritten since the jQuery 'ready' handler assured that the document load had completed. When you *do* have a callback option, even if it does nothing, then the loader uses a 'deferred' mode, which appends a script tag to the end of the current document's head element.
So, that answers that question. If you need to do the google.load() call after the document has been loaded, be sure to include a 'callback' option. dan On Tue, Jul 30, 2013 at 12:35 PM, asgallant <[email protected]>wrote: > Registering the button click handler in the callback works ( > http://jsfiddle.net/asgallant/44V2e/2/), but then, bizarrely enough, > having an empty callback function *also* works ( > http://jsfiddle.net/asgallant/44V2e/3/), but leaving out the callback > gives a blank page (http://jsfiddle.net/asgallant/44V2e/4/). I'm > stumped. I have no idea why it would behave this way. Any Googler's want > to weigh in on this one? > > > > On Tuesday, July 30, 2013 3:25:06 AM UTC-4, Jean-Marc Collin wrote: >> >> I just try with my application using the callback for displaying and it's >> working. So my code looks like your first fiddle. >> I just cannot understand why we need absolutly an initialization with >> callback to make it work... >> > -- > 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. > > > -- Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 [email protected] <[email protected]> 562D 5CC, Cambridge MA [email protected] <[email protected]> 9 Juniper Ridge Road, Acton 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 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.
