I think you want to look at the 'createTextRange()' method (and the methods
of the TextRange object, especially 'collapse()').  I often use this site
for DOM things:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/ref
erence/events.asp

Cross-browser compatibility for things like you're describing can be
difficult.  Be sure you know what browsers you need to support, and test on
all of 'em.

-glenn


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Thomas Huff
> Sent: Tuesday, December 23, 2003 8:42 AM
> To: [EMAIL PROTECTED]
> Subject: [KCFusion] JavaScript Cursor Question (OT)
>
>
> I am working with a text area field.  I populate the field from
> the database.  On the click of a button, I need to move the
> cursor to a substring in the text.  I can find the substring with
> "indexOf" but I'm not sure how to move the cursor to that position.
>
> Any ideas?
>
> Tom
>
> mailto:[EMAIL PROTECTED]
>
>
> Kansas City ColdFusion User Group's website & listserv is
> hosted through the generous support of Clickdoug.com
> To send email to the list, email  [EMAIL PROTECTED]
> To subscribe or unsubscribe, send an email to [EMAIL PROTECTED]
> with your request.
> For hosting solutions http://www.clickdoug.com
> Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1.
>


 
=========================================================
Kansas City ColdFusion User Group's website & listserv is 
hosted through the generous support of Clickdoug.com
To send email to the list, email  [EMAIL PROTECTED]
To subscribe or unsubscribe, send an email to [EMAIL PROTECTED] with your request.
For hosting solutions http://www.clickdoug.com
Featuring Win2003 Enterprise, RedHat Linux, CFMX 6.1. 
======================================================

Reply via email to