Click to See Complete Forum and Search --> : set data other than text in textarea?


bravo270681
07-10-2007, 01:25 AM
hi
is this possible to set data ina textarea other than text....
i have tried this
<textarea>
<jsp:include page="a.jsp" flush="true" />
</textarea>

but it sets the text only
rest the coding of the things like bgcolor
font, table tags are displayed
i am working on email application where i have to forward a email just like any mailing services i wish to set the current email's content in the textarea of the compose section of the application..... i got stuck at this point can anyone help me.....in simple words how to set data other than text in textarea ...
is there any alternative.....

Fang
07-10-2007, 03:23 AM
Virtually any element except for form controls. Usually an iframe is used for a RTE(Rich Text Editor)

Kor
07-10-2007, 03:24 AM
Textarea value should be only text (string). To transfer the content (text) of another external file/document you need a request method.

Could be the AJAX request object. But in this case you need your external file to be either a TXT file or an XML file. Otherwise you need also a server-side application which will get the AJAX request, will analyze your external file, will extract the text and will send back the answer as a string. The response will be written in the textarea on using javascript methods

AJAX:
http://www.xul.fr/en-xml-ajax.html