advanced q?: mouseup position to caret position?

Discussion in 'Javascript' started by brendan, Aug 29, 2006.

  1. brendan

    brendan Guest

    Hi,
    - I need to drag an element over an <input type='text' field
    - When/if the mouse is released set the caret position in that field to
    the cursor position over it
    - Then paste text in that position

    input.selectionStart works in an onclick capacity but not in an onmouseup
    capacity. Tried using the a.click() function but that just emulates a click
    at the end of the text-range ...

    No luck from the WC3 DOM specs, so I thought I'd try here. Any ideas?
    regards
     
    brendan, Aug 29, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?SHVnaA==?=

    Current Caret Position

    =?Utf-8?B?SHVnaA==?=, Feb 5, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    484
    Rob Meade
    Feb 5, 2004
  2. DaveR
    Replies:
    2
    Views:
    6,602
    Dave Rudlin
    Nov 17, 2004
  3. Robin
    Replies:
    0
    Views:
    721
    Robin
    May 12, 2005
  4. Camel
    Replies:
    3
    Views:
    6,349
    Camel
    Jul 12, 2005
  5. rf
    Replies:
    1
    Views:
    535
Loading...

Share This Page