469,658 Members | 1,828 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,658 developers. It's quick & easy.

a simple text editor in a comment textarea input box,

114 100+



Could someone please tell me what code to add here? I have a weblog, with daily news which readers can add comments to, which are stored in a database. The form to add the comments is on an ASP page, (see code below).
There is a small box, where readers can type a comment. What i want to do is to add a simple text editor, nothing too elaborate. A toolbar above the text area, should suffice, and it should be the same size as the box obviously. The text area is called "Comment" in the form below, and i want the text editor to appear above the comment box.

The text editor should include the following, and it can have little buttons as the images rather than text, which when hovered over, show the text for what the button stands for. Or it can have images with text underneath as it shows on the text editor above, (on the thescripts.com comment box.)


style, font size, colour, highlight, Bold, italic, underline, rule, numbered list, bulleted list, undo, redo,

I'm not html or ASP literate, so if anyone could tell me what to add where, i'd be grateful..

Thanks in advance for any help.


<table align="center" width="400" cellpadding="2" cellspacing="0" border="0">
<form action="_comments.asp?ID=<%=NID%>" method="post" name="frm3" onSubmit="return ValidateComment()">
<tr>
<td width="100">Name</td>
<td width="300"><%=Session("PMMS_USERNAME")%></td>
</tr><tr>
<td>Country</td>
<td width="300"><%=Session("PMMS_COUNTRY")%></td>
</tr><tr>
<td>Subject*</td>
<td width="300"><input type="Text" name="subject" value="" maxlength="50" class="textbox" style="width: 100%"></td>
</tr><tr>


<td valign="top">Comment*</td>
<td width="300"><textarea id="comment" rows="6" cols="50" name="comment" style="width: 100%;" class="textbox"></textarea>

<input type="Checkbox" name="allowE" value="1" />Allow readers to email me.
</td>
</tr><tr>
<td></td>
<td><input type="Submit" value="Leave Comment" /></td>
</tr>
<input type="Hidden" name="mode" value="set" /></form>
Apr 7 '07 #1
0 3273

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Cergon | last post: by
4 posts views Thread by Dariusz | last post: by
13 posts views Thread by LRW | last post: by
2 posts views Thread by nikou_70 | last post: by
1 post views Thread by Arjen | last post: by
6 posts views Thread by Ian Davies | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.