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

On Tue, Jun 17, 2008 at 2:05 PM, Luke Vanderfluit <
[EMAIL PROTECTED]> 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]<luke.vanderfluit%40e3learning.com.au>
> > <mailto:[EMAIL PROTECTED]<luke.vanderfluit%40e3learning.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>
> > 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] <josh%40gfunk007.com> <mailto:
> [EMAIL PROTECTED] <josh%40gfunk007.com>>
>
> --
> Luke Vanderfluit
> Analyst / Web Programmer
> 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]

Reply via email to