W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2004

[whatwg] Standard method to get/set caret position

From: Jim Ley <jim.ley@gmail.com>
Date: Sun, 29 Aug 2004 20:46:31 +0100
Message-ID: <851c8d3104082912464e2e646@mail.gmail.com>
On Sun, 29 Aug 2004 16:44:56 +0000 (UTC), Ian Hickson <ian at hixie.ch> wrote:
> On Thu, 26 Aug 2004, Ted Mielczarek wrote:
> >
> > While working on a javscript tool, I needed a way to get and set the
> > caret position in a textbox.
> 
> Interesting. Just out of curiosity, what is it that you were doing that
> required access to the caret position? If I may ask.

The typical use case for this, is some sort of rich editor, where a
user can use a button to add some sort text content into a text area,
so perhaps you'd have a button to add an email address from your
address book into an email you're authoring (ie to send to someone
else)

For webapps this would certainly be common requirements,  as to what's
best to do, I've not thought about it yet...

Jim.
Received on Sunday, 29 August 2004 12:46:31 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:36 UTC