Hi.
Josh McDonald wrote:
> I just tried this in my testbed project:
>
> <mx:TextArea id="foo" width="200" height="200" wordWrap="true"/>
> <mx:Button label="GO" horizontalCenter="0" top="10" click="trace('[' +
> foo.text + ']')"/>
>
> And it seems to work fine. I type some gibberish with a bunch of
> newlines and get:
Im using BareTail to show the flashlog.txt file.
Unfortunately it does all the compressing )-:
When I opened the file in wordpad, it has the line breaks!
doh!
What are you using for tailing the log file?
Im used to tail -f on linux...
anything you know that is equivalent on windows...
Thanks for your help (-"
Kr.
Luke.
>
> [sadasdad kjh sadlj hasdlkj hasdlkjh asdkjahsdlkajsh
>
>
> adhjk ajkshd ailsjdh kalsjdh
> kjhas dkjh asd
> d
> d
>
> d]
>
> Which as you can see includes the newlines. Can you post the source to
> your textarea and the button click code you're using to trace the value
> of the textarea?
>
> -Josh
>
> On Tue, Jun 17, 2008 at 2:56 PM, Luke Vanderfluit
> <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi.
>
>
>
> Josh McDonald wrote:
> > Yeah it helps, now we know that somewhere between flex and your
> database
> > (on the way in) you're losing your newlines :) How are you
> posting the
> > information back to your server?
> >
> > -Josh
>
> Great!
>
> when Ive rendered my textarea...
> so it contains:
> foo
> bar
>
> I have a button that when I click it does a trace of the
> textarea.text property.
> That trace doensn't contain the newlines...
>
> any ideas?
>
> Kr.
> Luke.
>
> then I do a trace on text property
>
>
> >
> > On Tue, Jun 17, 2008 at 2:05 PM, Luke Vanderfluit
> > <[EMAIL PROTECTED]
> <mailto:luke.vanderfluit%40e3learning.com.au>
> > <mailto:[EMAIL PROTECTED]
> <mailto:luke.vanderfluit%40e3learning.com.au>>> wrote:
> >
> > Hi.
> >
> > Sorry about not being clear.
> >
> > Im creating a TextArea programmatically and rendering the text in
> > there _with_ line breaks.
> >
> > So: ta1.text = "foo\nbar";
> >
> > When I save that (through some save function) I want to retain the
> > newline and save it to
> > the database.
> >
> > Then when I pull that data back into the same textarea, I want to
> > have the newlines where
> > they were b4.
> >
> > Currently the newlines dont even make it to the save function.
> >
> > How do I keep them?
> >
> > Hope this makes more sense.
> >
> > Kr.
> > Luke.
> >
> >
> >
> > Josh McDonald wrote:
> > > Not sure what you mean? If your server is returning text with line
> > > breaks, they should show up in your textarea without any
> > troubles. It
> > > could be your backend is stripping newlines on the way into or
> > out of
> > > the database. Try trace() with the string to double check.
> > >
> > > -Josh
> > >
> > > On Tue, Jun 17, 2008 at 1:43 PM, Luke Vanderfluit
> > > <[EMAIL PROTECTED]
> <mailto:luke.vanderfluit%40e3learning.com.au>
> > <mailto:luke.vanderfluit%40e3learning.com.au
> <mailto:luke.vanderfluit%2540e3learning.com.au>>
>
> > > <mailto:[EMAIL PROTECTED]
> <mailto:luke.vanderfluit%40e3learning.com.au>
> > <mailto:luke.vanderfluit%40e3learning.com.au
> <mailto:luke.vanderfluit%2540e3learning.com.au>>>> wrote:
> > >
> > > Hi.
> > >
> > > I found a thread on this group about this problem but it doesnt
> > > address my particular case.
> > >
> > > I rendering text in a textarea with "\n" line breaks, now I want to
> > > store it in a database
> > > with those line breaks included and when its loaded back into the
> > > textarea in flex, I want
> > > to display it with the linebreaks.
> > >
> > > Whats the recommended or easiest way to do this in Flex?
> > >
> > > Kr.
> > > Luke.
> > > --
> > > Luke Vanderfluit
> > > Analyst / Web Programmer
> > > e3Learning.com.au <http://e3Learning.com.au>
> <http://e3Learning.com.au>
> > <http://e3Learning.com.au>
> > > 08 8221 6422
> > >
> > >
> > >
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls. It tolls
> > for thee."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: [EMAIL PROTECTED]
> <mailto:josh%40gfunk007.com> <mailto:josh%40gfunk007.com
> <mailto:josh%2540gfunk007.com>>
> > <mailto:[EMAIL PROTECTED] <mailto:josh%40gfunk007.com>
> <mailto:josh%40gfunk007.com <mailto:josh%2540gfunk007.com>>>
>
> >
> > --
> > Luke Vanderfluit
> > Analyst / Web Programmer
> > e3Learning.com.au <http://e3Learning.com.au>
> <http://e3Learning.com.au>
> > 08 8221 6422
> >
> >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls
> for thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:josh%40gfunk007.com>
> <mailto:[EMAIL PROTECTED] <mailto:josh%40gfunk007.com>>
>
> --
> Luke Vanderfluit
> Analyst / Web Programmer
> e3Learning.com.au <http://e3Learning.com.au>
> 08 8221 6422
>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422