unable to use external javascript in GWT -


I want to use gojs with GWT. I downloaded the goose javascript and placed it under the war in the sample folder where sampleproject.nocache.js and sampleproject.devmode.js exist. In Sampleproject.html, I

  & lt; Script type = "text / javascript" language = "javascript" src = "sampleproject / go.js" & gt; & Lt; / Script & gt;  

I used one of the

  public static country zero initGo () / * - {var $$ = go.GraphObject.make; } - * /;  

When I call this function, the exception is thrown:

com.google.gwt.event.shared.UmbrellaException: the exception was caught: ( ReferenceError) @ com.amazon .ops.client.OpsMenuView :: initGo () ([]): Go is not defined.

Can anyone help me with this?

JS call to $ wnd Try prefixing with such as:

  var $$ = $ wnd .go.GraphObject.make; As explained, GWT runs in a nested frame and you have to use  $ wnd  to refer to the top level window. 


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -