472,118 Members | 1,184 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,118 software developers and data experts.

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()">
<td width="100">Name</td>
<td width="300"><%=Session("PMMS_USERNAME")%></td>
<td width="300"><%=Session("PMMS_COUNTRY")%></td>
<td width="300"><input type="Text" name="subject" value="" maxlength="50" class="textbox" style="width: 100%"></td>

<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><input type="Submit" value="Leave Comment" /></td>
<input type="Hidden" name="mode" value="set" /></form>
Apr 7 '07 #1
0 3393

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 Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.