Use new HTML("1.1.1.1<br>1.1.1.2<br>1.1.1.") instead.On 12 Jan., 16:14, "olivier FRESSE" <[email protected]> wrote: > If I remember well, textarea uses \r\n as newline characters, whatever the > platform/browser is > > 2009/1/12 LFCPD <[email protected]> > > > > > Hi all, > > > In my application I insert a newline symbol in a textArea like > > follows: > > > TextArea ta = new TextArea(); > > ta.setText("1.1.1.1\n1.1.1.2\n1.1.1.3"); > > > And in IE it appears like follows inside the TextArea (and is correct > > like this): > > 1.1.1.1 > > 1.1.1.2 > > 1.1.1.3 > > > Later, in my application I have to read the content of this textArea > > and recognize separately each line, and I do it by the \n symbol. > > > In IE it works perfectlky (it founds three elements), but not in > > Firefox, it seams like Firefox doesn't know the \n symbol. I've been > > looking around but I didn't find anything. > > > Can you help me, please? > > > Thanks in advance! > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
