[Proto-Scripty] Text selections

2011-05-09 Thread kstubs
Can anyone recommend code or library that helps with making text selections? 
 For example, selecting all text in a texarea?  Does Prototype help with 
this at all?

Karl..

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



Re: [Proto-Scripty] Text selections

2011-05-09 Thread Walter Davis
Selecting all text in a textarea is as simple as $ 
('theIdOfTheBox').select();


I have written an example that works with any text on the page,  
inspired by the New York Times' definition widget.


http://scripty.walterdavisstudio.com/lookup

Walter

On May 9, 2011, at 10:33 PM, kstubs wrote:

Can anyone recommend code or library that helps with making text  
selections?  For example, selecting all text in a texarea?  Does  
Prototype help with this at all?


Karl..

--
You received this message because you are subscribed to the Google  
Groups Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com 
.
To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com 
.
For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en 
.


--
You received this message because you are subscribed to the Google Groups Prototype 
 script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



Re: [Proto-Scripty] Text selections

2011-05-09 Thread kstubs
Ok, yep cool, nice demo!  
So the select() is easy enough, but what about:  selecting the word gently 
in a textarea?  So you might have:

row row row your boat gently down the stream

-- 
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.