Hi All

I have been searching this newsgroup for a workaround for the newline
character \n in pie (pocket internet explorer) textarea elements.

It is not supported on my XDA II (not sure what version of windows mobile
this runs?)

Anyway this works,
<textarea name=i1 rows=10 cols=50></textarea>
<script>
i1.value = 'start'+String.fromCharCode(13, 10)+'end'
</script>

this has been frustrating me for a while.

Stephen

Re: pocket ie \n newline in a textarea by Thomas

Thomas
Tue Apr 26 10:57:24 CDT 2005

I don't know PIE but MFC multiline edit controls require \r\n (CR+LF)
to break lines. May be the same in PIE textarea controls.
Tom
26.04.2005 07:46:39
Stephen James <sjames@qual.com.au> wrote in message
<3Bkbe.25017$5F3.5251@news-server.bigpond.net.au>

> Hi All
>
> I have been searching this newsgroup for a workaround for the
newline
> character \n in pie (pocket internet explorer) textarea elements.
>
> It is not supported on my XDA II (not sure what version of windows
mobile
> this runs?)
>
> Anyway this works,
> <textarea name=i1 rows=10 cols=50></textarea>
> <script>
> i1.value = 'start'+String.fromCharCode(13, 10)+'end'
> </script>
>
> this has been frustrating me for a while.
>
> Stephen
*-------------------------------------------------*
* *
* Smart Solutions AG *
* Baarerstrasse 98, Postfach 2642 *
* 6302 Zug / Switzerland *
* *
* Your partner in enterprise and mobile computing *
* *
* http://www.smart-solutions.ch *
* *
*-------------------------------------------------*

Re: pocket ie \n newline in a textarea by Stephen

Stephen
Wed May 04 21:26:54 CDT 2005

Hi

This also works and is a bit simpler

<textarea>
first line&#10second line
</textarea>