Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8050013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:56:55+00:00 2026-06-05T06:56:55+00:00

I would like a callback function to be executed each time the caret or

  • 0

I would like a callback function to be executed each time the caret or selection moves in the text area.
Anybody knows how to do that?

Edit: I know how to retrieve the carret position. I’m interested in how to watch for the change. With my current knowledge i would test carret position on each keyup / mousemouve / mouseup. Is there a smarter (and more performant) way to do it. Are there event that may change the carret position that i did not think about ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T06:56:56+00:00Added an answer on June 5, 2026 at 6:56 am

    In the end I finally found after exploring each of possible solutions that there is no performant way to do that for large amounts of text.

    I have no other solution than waiting for my web application to meet the technical requirements to use a modern text area replacement library (= not depending of ie quirks mode).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It looks like callback function is executed right after animate is called, not at
i would like to add a callback function to a threaded function without freezing
I would like to use the Fl::awake(callback) function to call functions from my main
I would like the below function to be more flexible and accept multiple callbacks
Would like to make anapplication in Java that will not automatically parse parameters used
I would like to execute a function when Simplemodal opens a window, and have
How does jQuery (JavaScript) and gc work? callBack is a function that runs as
I am working on implementing a function that would execute another function a few
I would like to execute a callback after a particular div gets removed. I
I have a C++ helper class that I use with objective-C. I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.