HTML Textarea removing Carriage Returns

Hi,

Hoping someone can assist, I am retrieving some data from an Oracle table that currently consists of carriage returns but when I try and retrieve this information via Ajax and pass it back into the HTML page textarea field, I value returned is one continuous string.

All carriage returns are removed.

Can someone please assist, possibly using a javascript solution or some other type as to how I can preserve the carriage returns.

I just don’t understand what the issue is here.

Thanks.
T.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Do you know what form these carriage returns are stored in? I haven’t
worked much with Oracle, but in MySQL, you can have each column of
each table in a different character encoding, and you can be storing
data that was entered in many different ways (which could lead to a
situation where Windows data is stored in a Unix manner, or some other
combination of formats. If the data is retrieved through a different
method than it was entered, you might end up with a mis-match that way.

Also, you don’t mention which (if any) framework you are using to
manage your Ajax. Prototype has (and probably the others do as well) a
lot of code in it to work around the display of text in form elements.
If you’re not using a framework, then you would have to duplicate this
effort.

Walter

On May 4, 2009, at 6:38 AM, Tonsils wrote:

Hoping someone can assist, I am retrieving some data from an Oracle
table that currently consists of carriage returns but when I try and
retrieve this information via Ajax and pass it back into the HTML
page textarea field, I value returned is one continuous string.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options