PDA

View Full Version : append data to textarea dynamically



javapurna
26 Apr 2013, 11:49 PM
hi every one ,

i want to add data to textarea(setText()) method working fine,but it update existing data to new data .
but my requirement is to append data to textarea .
43392

if i am click on every time on timer image , append data to text area line by line ,but previous data will not be lost

evant
26 Apr 2013, 11:52 PM
textArea.setValue(textArea.getValue() + 'foo');

javapurna
27 Apr 2013, 12:51 AM
thanks for replaying evant,
is it possible to add new line every appended content and space.43393

girish.arjunagi
28 Apr 2013, 11:53 PM
You can use newline character for moving to next line.


textArea.setValue(textArea.getValue() + 'foo' + '\n'+'foo');