Check out these two sections:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#methods-fields

http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#calling

I believe the second link is what you need.

cheers

On May 19, 8:22 pm, Gabriel Gutierrez <[email protected]> wrote:
> Hey guys,
>
> I know that GWT interfacts with native JS using JSNI, but my question
> is: can I call from native JS to GWT generated code? how?
>
> My idea is to write, in GWT, a class (MyClass) and then, in an HTML
> file import the .nocache.js file and use native JS do something like
> this
>
> <script type="text/javascript">
>     MyClass instance = new MyClass();
>     instance.property = "value";
> </script>
>
> The reason is that i need to build a complex JS library and i dont
> want to think about browsers compatibility it will take a lot of time.
>
> Thanks on advance your comments.
>
> --
> 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 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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.

Reply via email to