Hmm... My offhand guess is that you are making calls into the API
before the AjaxLoader or VisualizationUtils.loadAPI() method Runnable
returns.

On May 15, 8:32 am, googelybear <[email protected]> wrote:
> Hi,
>
> When I call DataTable.create(); in my app I get the following
> exception:
>
> com.google.gwt.core.client.JavaScriptException: (TypeError):
> $wnd.google.visualization.DataTable is not a constructor
>  fileName: jar:file:/home/myapp/lib/gwt-visualization.jar!/com/google/
> gwt/visualization/client/DataTable.java
>  lineNumber: 33
>  stack: ()@jar:file:/home/myapp/lib/gwt-visualization.jar!/com/google/
> gwt/visualization/client/DataTable.java:33
> private void com.google.gwt.http.client.Request.fireOnResponseReceived
> (com.google.gwt.http.client.RequestCallback)([object
> gwt_nativewrapper_class])@:0
> ()@jar:file:/opt/gwt-linux-1.6.4/gwt-user.jar!/com/google/gwt/http/
> client/XMLHTTPRequest.java:253
> @:0
>
> This only happens in the embedded browser. When I compile it and open
> it in forefox the bar chart is displayed. Any ideas what I'm doing
> wrong?
--~--~---------~--~----~------------~-------~--~----~
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