Rene Grothmann wrote:
I try to send a bunch of lines from JavaScript to a Java applet on the
same page. However, I receive only an empty string, unless the TextArea
has only one line.
Can someone put my nose on the right way to send all lines to Java?
As a complete stab in the dark, have you tried replacing all newlines,
carriage returns, linefeeds, tabs, etc. with a single space? e.g.
var varToPass = TAref.value.replace(/\s+/g,' ');
varToPass has the value of the textarea with newlines, carriage returns,
linefeeds, tabs, etc. replaced by single spaces.
TAref is a reference to the textarea and varToPass is the variable to send
to the applet.
--
Rob