Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > advanced q?: mouseup position to caret position?

Thread Tools

advanced q?: mouseup position to caret position?

Posts: n/a
- 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 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?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: No caret with two items at same location (position:fixed) rf HTML 1 09-19-2008 11:42 PM
How to set system.out.print caret at the same position? Camel Java 3 07-12-2005 04:55 PM
JEditorPane (text/html) - determining position of caret in HTML source Robin Java 0 05-12-2005 03:48 PM
How to get cursor insertion point (caret position) from text box DaveR ASP .Net 2 11-17-2004 09:39 AM
Current Caret Position =?Utf-8?B?SHVnaA==?= ASP .Net 1 02-05-2004 01:57 PM