I assume this isn't verbatim because Window.alert() is capitalized.

Did you look at the Chrome/Safari Inspector or Firebug to see if there are
any JavaScript exceptions happening?
Did you try debugging this in GWT DevMode and setting a break point in you
run() callback?

On Tue, Mar 8, 2011 at 9:23 AM, Ferdinand Ng <[email protected]> wrote:

> Dear All Experts,
>
> I am new to GWT and Visualization wrapper, I try out the example
> SimpleViz.java shown in the GWT web. Unfortunately I can't get the
> sample works,
>
> ......
> public class SimpleViz implements EntryPoint {
>  public void onModuleLoad() {
>    // Create a callback to be called when the visualization API
>    // has been loaded.
>    Runnable onLoadCallback = new Runnable() {
>      public void run() {
>        window.alert("3");
>        Panel panel = RootPanel.get();
>
>        // Create a pie chart visualization.
>        PieChart pie = new PieChart(createTable(), createOptions());
>
>        pie.addSelectHandler(createSelectHandler(pie));
>        panel.add(pie);
>        window.alert("4");
>      }
>    };
>
>    // Load the visualization api, passing the onLoadCallback to be
> called
>    // when loading is done.
>    window.alert("1");
>    VisualizationUtils.loadVisualizationApi(onLoadCallback,
> PieChart.PACKAGE);
>    window.alert("2");
>  }
> .......
>
> I tried it out and it only print 1 and 2, not printing 3 and 4. It
> seems that the Runnable object was not called when the package is
> finished loading. Since there is no error and no return code, I can't
> really judge by where it goes wrong,
>
> if anyone has any idea, please shine some light on me. Was stucked in
> this for 2 days...
>
> Best Regards
> Ferdi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.

Reply via email to