For the GWT-to-Applet communication, JSNI is probably all you need.
For the other side of the conversation you could do it with JSNI, but
an easier way may be to look at the gwt-exporter project and build an
'exported' API that the applet can call in native JS.

http://code.google.com/p/gwt-exporter/
The project site is sparse on doc, but the author's blog should help
you get started: http://timepedia.blogspot.com/search?q=exporter

On May 19, 12:16 pm, Asier <avsg...@gmail.com> wrote:
> Hi
>
> We are designing an application that needs client-side digital signatures.
> This is going to be accomplished via a signed java applet.
>
> I know I can add the applet code instantiation via
>
> HTML applet = new HTML();
> applet.setHTML(createHTMLApplet());
> RootPanel.get().add(applet);
>
> This works well but as this is our first GWT app we have some questions:
>
> - The applet, after being initialized calls some javascript methods to notify
> it has been loaded, and do the same after client-side signature has finished:
>
> function onInitOk(){ ... }
> function onSignOk(signature) { }
> function onSignCancel() { }
> function onSignError(erorr) { }
>
> How can I accomplish this? JSNI? JavaScript Overlays?
>
> - It would be really interesting to comunicate directly with the applet via
> javascript, f.i., leaving in some javascript variables the data to be signed
> and retrieve the signed data when the applet calls the onSignOk function
>
> This is also possible?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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 google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to