Click to See Complete Forum and Search --> : How to transmit data from textarea-HTML to an Applet on MAC OS and update textarea


melodyb
05-15-2003, 09:25 AM
Hi, i'm writing an applet JAVA and I would like to use in my applet the data coming from a textarea of the same html page and at the end of my applet, i want to update this textarea.
I'm working on MAC OS (LiveConnect doesn't work).
Java->Javascript :
I've tried the system of invisible frame with javascript that i've found at this address: http://www.rgagnon.com/ce/java-js.html but the data are transmitted via the url (by means of the get method) and i've too much data to move. I've tried to post the data to a cgi script and i've used the showDocument method but i can't get the data that i've posted.
Javascript->Java :
I've tried the solution given at the same address but it doesn't work at all because : 1) the method getDocumentBase() doesn't gives the parameters 2) it still uses the get method.
after, i've passed the data through a PARAM tag. It works but if you have another solution, i'll take it.

I would appreciate any help.

khalidali63
05-15-2003, 09:41 AM
I have not tested it on MAC OS,but you can try,it should work (definitly in NS)

http://68.145.35.86/skills/javascripts/applets/AppletJavaScriptInteraction.html

To send data to applet use spaces in between the words,I used split function to create an array to pass to applet for demonstration that an array object can be passed to applet.

Hope this helps

melodyb
05-15-2003, 10:21 AM
Sorry, i should have said that i've already tried this solution consisting of a direct call of a java method in javascript : it doesn't work on MAC.

khalidali63
05-15-2003, 10:30 AM
seems odd...since( I could be totally off line)A JVM version's finctionality is not limited by the OS...
I am hoping that you have performed all tests to make sure that your browser has a valid pluggin installed..:p

melodyb
05-16-2003, 03:02 AM
which plugins are you speaking of ?
all the others javascript functions and java functions are available
so i think that my configuration is OK