Embed javascript in GWT
1 answer
here are some docs to help you get started
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html
here's a simple example of a native method:
private native void nativeMethod()
/*-{
$wnd.jsFunction = function(x) {
alert(x);
};
alert("hello");
}-*/;
it creates a javascript function called jsFunction
which can be called from HTML or any other javascript. and then he announces.
+6
source to share