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
On 10/8/06, Luc Bourhis <luc_j_bourhis-ee4meeAH724@public.gmane.org>
wrote:>
>
> 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
>
>
> >
>
--
Aneesha
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---