Hi,

Ive got a JS file (test.js) located on a remote server (which not the
same as the server where my app runs).

This test.js contains a variable 'foo' that I need to access through
GWT.

For this, I first made an entry into my gwt.xml file which is
something like this:
 <script src="https://anotherserver.com/scripts/test.js"; />

Following is the JSNI code that ive written

public final native void getData()/*-{

                $wnd.foo.prop11 = @com.one.myapp.ui.client.SomeClass::MYVAR;

                foo.doSomething();

                $wnd.alert('Data sent');

        }-*/;


I however get an error saying:

com.google.gwt.core.client.JavaScriptException: (ReferenceError): foo
is not defined


Where am I going wrong? Please help me out! :(

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to