codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Writing to a textarea  bandruss at 23:58 on Thursday, March 03, 2005
 

Hi all,

I have a question on writing outputs to a textarea.

Here is the scenario I am running. I have a log table from
which I need to select the time, username, actionname and action
description and write into the textarea (basically this is a
readonly textarea where information is simply displayed).

I am able to write the information after the textarea. However,
I need to be able to write it within the textarea. Currently,
here is how my output is:

_______________________
Existing | |
Notes: | |
|_______________________|



Wed Mar 02 09:27:39 PST 2005 Bill AndrussRequest Saved

Action taken on Account Team tab.

Mon Feb 28 12:04:31 PST 2005 Bill AndrussNew Request Created

A new deal has been created.



I would like the above information to be displayed within the
textarea as follows:



Existing Wed Mar 02 09:27:39 PST 2005 Bill Andruss.
Notes: Request Saved.
Action taken on Account Team tab.

Mon Feb 28 12:04:31 PST 2005 Bill Andruss.
New Request Created.
A new deal has been created.


(Information other than the words 'Exisiting Notes' needs
to be within the textarea)

Any help would be greatly appreciated.

Thank you,
Bill.

Note: With the following code, I basically tried to print the
details after the textarea as I simply do not know how to
write to a textarea.


<table>
<td width="3%" align=right></td>
<td align=left valign=top> <b>Existing Notes:</td>

<TD><textarea name="existing" wrap="hard" cols="70" rows="10"
onkeypress="validateSize(this, 2000)" onchange="validateSize(this, 2000)"
READONLY></textarea></TD>


</table>

<tr>
<table>
<td width="3%" align=right></td>
<%
int logSize = actionLog.size();
if (logSize > 0){
for (int j=logSize-1; j >=0; j--){
DealStatusAction dsa = (DealStatusAction)actionLog.get(j);
String actionNm = dsa.getActionName();
String actionDate = dsa.getActionDate().toString() + "";
String memo = dsa.getMemo();
String actionPerformer = ((dsa.getLastName() == null ||
dsa.getFirstName() == null)?"":(dsa.getFirstName()+" "+dsa.getLastName()));


%>
<tr>
<tr class="grey1" align="left" valign="top"><%=actionDate%></tr>
<tr class="grey1" align="left" valign="top"><%=actionPerformer%></tr>
<tr class="grey1" align="left" valign="top"><%=actionNm%></tr>
<tr class="grey1" align="left" valign="top"><pre><%=CUtil.clean(memo)%></pre></tr>
</tr>
<%
}
}
%>









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  What do you mean by ASP.NET MVC Execution Process?
•  Re:
•  Re:
•  one java progarm handle two socket connection
•  How to navigate database page?
•  "check the swingweight of your wedges
•  "Fitting Wedges
•  "Fitting Wedges
•  "Find the shaft for you


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2012