[thelist] execCommand question

Ray Doubleday rdoubleday at targetect.com
Fri Nov 30 14:05:15 CST 2001


I don't know much about DHTML  so i need a little help
I am trying to buid a mini editor so that my end users
can modify their web pages with elementary HTML without
knowing what tags to use.
Our structure is that we have a database that stores the text parts
of a clients site. WHen the client uses a web browser to update his site
we put the text into a textarea in a form and then allow him to modify it.
when he is done he submits the form to an asp processing page and we update
the database.
I would like to use the Minieditor to work on the code inside the text area.
Here is what Ive done so far.
I have written a small javascript piece of code that will modify
most anything on the page.

function cExec(cmd,opt)
	{
  	document.execCommand(cmd,"",opt);

	}
and this works fine .

I am trying to access the textarea part of a form
<form action="processform.asp"   method=post id=form1 name=form1>
<table border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
	<tr>
		<td>
		<table width="450">
		<td align="right" valign="top">Description:</td>
		<td align="left"  ><textarea cols="30" rows="3" name="Description"> ray
Description </textarea></td>
		</tr>
	<tr><td><input type="submit" value="UPDATE" id="submit1"
name="submit1"></td></tr>
			</table>
			</td>
		</tr>
	</table>
</form>

document.form1.Description.value is the object that i want to change
and it doesnt work inside the text area.
So how do I get the cExec to see it

TIA
Raymond J Doubleday
Targetect
207 594-4133 x 143
www.targetect.com
rdoubleday at Targetect.com






More information about the thelist mailing list