Hi,

There's nothing in Prototype AFAIK, you'd need to fall back on the raw DOM...

According to Danny Goodman's trusty but slightly ageing 'Dynamic HTML' book:

"To position the insertion pointer in  specific location inside a textarea 
element in IE, see the TextRange object"

Both <input type='text'> and <textarea> support a createTextRange() method. 
Goodman marks it as unsupported in Netscape, but a 
quick google suggests that Firefox supports the TextRange object too these 
days.

Might be what you're looking for?

HTH

Dave


On Thursday 08 March 2007 14:33, Gábor Csepregi wrote:
> Hi there,
>
> is there any way to select part of an input element, not the whole of it,
> keeping the cursor at the start of the selection?
>
> As far as i can remember, about a year ago i saw a working page using this
> feature, but i cannot find it now...
>
> I hope someone can help me to find an answer to my question.
>
> Anthyon

-- 
----------------------
Author
Ajax in Action http://manning.com/crane
Ajax in Practice http://manning.com/crane2
Prototype & Scriptaculous Quickly http://manning.com/crane3

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to