I would like to call arbitrary js function from gwt. Function name would be inside functionname variable. Something like this:
private static native String execute(String functionName, JavaScriptObject data) /*-{
return $wnd.functionName(data);
}-*/;
I assume that something like this could be possible, but how to create fn variable to represent my arbitrary functionname function.
private static native String execute(JavaScriptObject fn, JavaScriptObject data) /*-{
return fn(data);
}-*/;