Tuesday 7 December 2010

Access Client-side JavaScript Functions and Elements from GWT.

One thing I found tricky in GWT was to interact with elements and aspects of HTML that were not directly controlled within the GWT code.

How to access some client-side Javascript from GWT code.

To access the javascript function, functionA(), use the following client-side GWT code;

native String functionA() /*-{

return $wnd.functionA();

}-*/;





No comments:

Post a Comment