Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Set textarea value with line breack (crlf, CR LF) using javascript

Tobias ArnholdOct 6 2008 — edited Oct 9 2008
Hi,

I want to set the value of an textarea called P103_SEND_MESSAGE with line breaks in it before it get shown (via pop up site).

> <script language="JavaScript" type="text/javascript">
>function CHECK_SEND_MAIL(v_value)
>{
> if (v_value == 'YES'){
> var v_message_text = 'Test CR LF Hello, utl_tcp.crlf your task got finished';
> var url = 'f?p=&APP_ID.:103:&SESSION.::::P103_SEND_MESSAGE:' + v_message_text;
> window.open(url,'popup', 'toolbar=no,width=520,height=320,resizable=no,top=40,scrollbars=no');
> // P52_CHECK_SEND_MAIL into JS variable
> var l_field_id = document.getElementById("P52_CHECK_SEND_MAIL");
> // set value for field
> l_field_id.value = '';
> }
>}

The field get filled but the no line breaks appears.

Anybody with an idea?

Thanks ahead,


Tobias
This post has been answered by Dimitri Gielis on Oct 6 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2008
Added on Oct 6 2008
6 comments
3,189 views