Yeah, that sounds like what's happening.  Forgot about \n.

-TH

--- In [email protected], "wesley.petrowski"
<[EMAIL PROTECTED]> wrote:
>
> I'm not sure if this is applicable, but since a "newline" on a windows
> system is \r\n (CR + LF), is it possible that hitting enter adds both
> these characters, and then hitting backspace only removes the last
> character, leaving the \r?
>
> I would have thought the built-in TextArea component would handle
> stuff like that, though...
>
> --- In [email protected], "Tim Hoff" TimHoff@ wrote:
> >
> >
> > For validating, you'll want to look at the text property. The
> escape
> > characters should only show up in the htmlText property. I suspect
> that
> > if you press the down arrow key and then the backspace, the carriage
> > return would be removed.
> >
> > -TH
> >
> > --- In [email protected], rviswanathan <v_ramakrishnan@>
> > wrote:
> > >
> > >
> > > Thanks Tim. I agree that these are escape chars. But when I do a
> > backspace,
> > > do I not nullify the effect of the carriage return? Why would it
> still
> > hold
> > > a \r?
> > >
> > > If I am validating the content of this textarea, then do I have to
> > look for
> > > a \r in the end and strip it if it exists?
> > >
> > > Thanks
> > > Ram
> > >
> > >
> > >
> > > Tim Hoff wrote:
> > > >
> > > >
> > > > Those are the escape characters for the carraige return Ram.
> > > >
> > > > -TH
> > > >
> > > > --- In [email protected], rviswanathan v_ramakrishnan@
> > > > wrote:
> > > >>
> > > >>
> > > >> Hi All
> > > >>
> > > >> I have a textarea where I enter some information and submit.
> These
> > are
> > > > the
> > > >> following steps
> > > >>
> > > >> 1. Run the attached swf
> > > >> 2. In the textarea, clear the contents and enter some text, say
> > > > "Sample
> > > >> Text" (Do not move out of the textarea until completing the
> next 2
> > > > steps)
> > > >> 3. Press the carriage return
> > > >> 4. Now press backspace -> We would now end up with exactly the
> same
> > > > text as
> > > >> in Step2 "Sample Text"
> > > >> 5. Click the submit button - When I debug, I notice that the
> actual
> > > > text
> > > >> that the textarea holds is "Sample Text\r" instead of "Sample
> > Text".
> > > >>
> > > >> I am not sure why "\r" gets added in this case. Is this an
> issue
> > with
> > > >> textarea? Or is my understanding incorrect?
> > > >>
> > > >> I have attached the source code as well. Please help.
> > > >>
> > > >> Thanks
> > > >> Ram
> > > >>
> > > >> http://www.nabble.com/file/p19761965/TextAreaIssue.mxml
> > > > TextAreaIssue.mxml
> > > >> http://www.nabble.com/file/p19761965/TextAreaIssue.swf
> > > > TextAreaIssue.swf
> > > >> --
> > > >> View this message in context:
> > > >
> > http://www.nabble.com/TextArea-Issue---adds-an-extra-%22%5Cr%22-
> tp197619\
> > \
> > > > 65p19761965.html
> > > >> Sent from the FlexCoders mailing list archive at Nabble.com.
> > > >>
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > http://www.nabble.com/TextArea-Issue---adds-an-extra-%22%5Cr%22-
> tp197619\
> > 65p19763919.html
> > > Sent from the FlexCoders mailing list archive at Nabble.com.
> > >
> >
>



Reply via email to