I'm not really sure that the DynAPI is the tool to accomplish this.

You say you just have a textarea with content in. If all you want to do is
insert a tag around the whole lot, then all you need to do is use the normal
javascript string functions. Assign the textarea contents into a variable

eg

var strContents = document.formName.textAreaName.value

Then just concatenate your tags around the variable. I'm not sure of the
exact syntax, in php you would write

strContents = "<b>" . strContents . "</b>";

to make it bold. If you want to insert tags around portions of the text,
then you'll probably need to do the opening and closing tags seperately,
unless you can assign a variable as a selected portion of a textarea, which
I need more advice about!

Either way, it's not really DynAPI stuff.

HTH, Ben
================================================================

= Array[x] =
= delivering design aware programming solutions =
= www.arrayx.co.uk = = [EMAIL PROTECTED] =
= +44 (0)7780 696840 = = 1 Flintham Drive, Sherwood, Notts. NG5 3DS UK =

STANDARD DISCLAIMER: This message is confidential. You should not copy it or
disclose its contents to anyone. You may use and apply the information only
for the intended purpose. Internet communications are not secure and
therefore Array[x] does not accept legal responsibility for the contents of
this
message. Any views or opinions presented are only those of the author and
not those of Array[x]. If this email has come to you in error please delete
it and
any attachments.



---
Outgoing mail is certified Virus Free using AVG version 6.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.250 / Virus Database: 123 - Release Date: 18/04/2001


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to