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
Post a Comment