Make sure your hosted.html or module.gwt.xml file contains a <script>
tag that loads the "jsapi" script as described here:

  http://code.google.com/apis/maps/documentation/index.html#AJAX_Loader


On Mar 2, 10:58 am, Aline <[email protected]> wrote:
> Hi,
>
> I have exactly the same problem, please could you explain how did you
> fix it?
>
> thx a lot
>
> On 4 jan, 18:09, "Oron Asaf" <[email protected]> wrote:
>
> > Tx Eric
>
> > Apparently the problem was I created the project with a wrong parameter. It 
> > now works fine.
>
> > -----Original Message-----
> > From: [email protected] 
> > [mailto:[email protected]] On Behalf Of Eric Z. 
> > Ayers
> > Sent: 02 January, 2009 4:49 PM
> > To: Google Visualization API
> > Subject: [visualization-api] Re: '$wnd.google' is null or not an object
>
> > It appears to me you are not sucessfully loading the JavaScript API
> > using the AJAX API loader.  You can either use javascript commands to
> > the loader directly in your .html file, or you can use the AjaxLoader
> > class.
>
> > On Jan 1, 11:45 am, Corwin1 <[email protected]> wrote:
> > > I'm a beginner with visualization api & gwt. I've done what's written
> > > in the getting started visualization page "Setting up a GWT Project to
> > > use the Visualization API"
> > > athttp://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis...
>
> > > when i try to run the pie chart example provided there from eclipse or
> > > from command line  it fails with the following errors:
>
> > > [ERROR] Unable to load module entry point class
> > > com.example.simpleviz.client.SimpleViz (see associated exception for
> > > details)
> > > com.google.gwt.core.client.JavaScriptException: (TypeError):
> > > '$wnd.google' is null or not an object
> > >  number: -2146823281
> > >  description: '$wnd.google' is null or not an object
> > >         at com.google.gwt.visualization.client.AjaxLoader.loadApi(Native
> > > Method)
> > >         at 
> > > com.google.gwt.visualization.client.AjaxLoader.loadVisualizationApi
> > > (AjaxLoader.java:38)
> > >         at 
> > > com.google.gwt.visualization.client.AjaxLoader.loadVisualizationApi
> > > (AjaxLoader.java:31)
> > >         at 
> > > com.example.simpleviz.client.SimpleViz.onModuleLoad(SimpleViz.java:
> > > 35)
>
> > > [ERROR] Failure to load module 'com.example.simpleviz.SimpleViz'
>
> > > What is wrong ? Can anyone please help ?
>
> > > thanks- Masquer le texte des messages précédents -
>
> > - Afficher le texte des messages précédents -
--~--~---------~--~----~------------~-------~--~----~
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