Yes, that's what I'm trying to do. I'm building an app that generates HTML on the fly, and I want to allow the user to be able to insert bold, italics, bulleted lists, etc. into the text by clicking a button--very much like HTML editors you see on chat boards. It works great, so long as the user wants the formatting inserted at the end of the text. It he says to himself, "Oh yeah, I wanted the third word up in the second paragraph to be bold," he has to insert the markup tags manually.
-----Original Message-----
From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Rabi Tripathi
Sent: Wednesday, July 12, 2006 10:36 AM
To: [email protected]
Subject: Re: Finding Cursor Position in a Field
I can imagine being able to do so in a browser using
_javascript_, but not on windows client.
What is it you wish to do? Insert text at the cursor
position? I once tried to do exactly that, but I
couldn't. I was able to get around it and build a
workable solution that didn't require me to know the
position.
Or, are you trying to do something different?
--- Kaiser Norm E CIV USAF 96 CG/SCWOE
<[EMAIL PROTECTED]> wrote:
> Hi everyone:
>
>
>
> Has anyone discovered a way to find the cursor
> position within a text field
> yet? I know there's been some discussion of that
> issue on the list before,
> but I don't think there was ever a solution.
>
>
>
> In other words, say you have a text field with the
> following text: Hello
> ARS L|ist
>
>
>
> The pipe represents the cursor. What I'm looking
> for is a method that will
> tell me that the cursor is at position 11 (or 12 or
> whatever it is) in the
> text field. Any ideas?
>
>
>
> Norm
>
>
>
_______________________________________________________________________________
> UNSUBSCRIBE or access ARSlist Archives at
> http://www.wwrug.org
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at http://www.wwrug.org

