Interaction with Java Applet

I need to interact with a Java applet (a molecule sketcher if you wish to know!). Basically, I have
<applet name="molecule_sketch" .......>
and I can get to what the user has drawn with Javascript with
document.molecule_sketch.getMol()
which returns a string.

How would I pass that string to the server side?

Thanks for any help,

Luc Bourhis

Hi

Store document.molecule_sketch.getMol() in a hidden field. Then you can send the data back to the server with a simple form submit.
If you dont want the page to reload use the form_remote_tag helper which will serialize and submit via AJAX.

Hope this is helpful.

Aneesha