i got it working, this is my solution if someone has a similar problem
or can tell me a better way :)
public void javaFunc(String set) {
//do something
}
public native void createJS(Class x) /*-{
$wnd.jsFunc= function(set) { return [email protected]::javaFunc
(Ljava/lang/String;)(set); };
}-*/;
if i call jsFunc in my browser, it calls the javaFunc void.
greetings flex
On 8 Dez., 11:58, Flex <[email protected]> wrote:
> Hello,
> here is my scenario:
> i am using FusionCharts that has a drilldown functionality. if you
> click on an element of the chart, fusioncharts calls a javascript
> function passing some (user defined) params. those params can include
> for example the id of the element just clicked.
> i need these parameters passed to the server and i dont really have an
> idea how to start.
> my first idea is, that i have to define a javascript-object in gwt and
> append some kind of valuechangelistener to it so that i receive an
> event if the object gets modified by the function called by
> fusioncharts. im not sure if you can realize something like that with
> gwt, at least i am not able to realize it atm :)
> i would be thankfull for any tips :)
> greetings flex
--
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.