Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Alex Brem
Hello Jonathan, as Karl and Jörn already pointed out, at the time I'm coding a plugin which handles all the selection stuff inside an input field / a textarea. The latest Version also includes setSelection. More information can be found in this thread: http://www.nabble.com/plugin%3A-fieldSelect

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Jonathan Sharp
Oh, yeah I've been looking at code too long today. Sorry Alex, didn't mean to imply that Karl wrote it. My ALU was a little lagging... -js On 12/19/06, Karl Swedberg <[EMAIL PROTECTED]> wrote: On Dec 19, 2006, at 2:06 PM, Jonathan Sharp wrote: Would you be interested in adding this to your p

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Jörn Zaefferer
Jonathan Sharp schrieb: > Man, I just can't keep up with this list! > > Yeah, that's 90% of what I'm looking for, I need the ability for a > "setSelection" which would just focus & set the cursor/selection > position in the field... I found some examples of this. Would you be > interested in add

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Karl Swedberg
On Dec 19, 2006, at 2:06 PM, Jonathan Sharp wrote: Would you be interested in adding this to your plugin? Actually, that question should be directed toward Alex Brem, the plugin's creator. Sorry if I gave the impression that the plugin was mine. Alex, what do you think? --Karl On Dec

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Jonathan Sharp
Man, I just can't keep up with this list! Yeah, that's 90% of what I'm looking for, I need the ability for a "setSelection" which would just focus & set the cursor/selection position in the field... I found some examples of this. Would you be interested in adding this to your plugin? Cheers, -Jo

Re: [jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Karl Swedberg
Hi Jonathan, Is this what you're looking for? Posted a few days ago... http://laboratorium.0xab.cd/jquery/fieldselection/ --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 19, 2006, at 1:28 PM, Jonathan Sharp wrote: Is it possible to get the current

[jQuery] Cursor position inside of textfield / textarea?

2006-12-19 Thread Jonathan Sharp
Is it possible to get the current cursor offset in a text field? For example "Hello world" if the cursor is between the "H" and "e" could I somehow get the offset of "1"? -js ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/