how to call a javascript fucntion from an included javacript file using GWT?
Posted
by subh
on Stack Overflow
See other posts from Stack Overflow
or by subh
Published on 2010-04-06T15:40:18Z
Indexed on
2010/04/06
15:43 UTC
Read the original article
Hit count: 200
gwt
I have a function Load() in a js file which I added to the GWT module.
I am trying to call it using
private static native void load() /*-{
$doc.Load();
}-*/;
but it gives me error like
Error(s) occurred! (TypeError): $doc.Load is not a function fileName: http://localhost:8888/myapp/888C05FB242806B071A932498F6B5AD9.cache.html lineNumber: 1224
I even tried with $wnd.Load()
What the proper way of calling it?
© Stack Overflow or respective owner