Try activate in place of focus, and see if that works for you. Just
checking -- you do have Prototype in your page, right?
Walter
On Oct 19, 2010, at 9:59 PM, JoJo wrote:
I'm creating a standard chat system. When the user hits the Enter key
in the textarea, I send her comment to the server. Then I clear her
message so she can begin typing a new one. The cursor blinker
disappears when I do this clear. It's better for usability if the
blinking remains. How do I put it back?
<textarea id="foo"></textarea>
$('foo').clear();
// at this point the blinking cursor is gone
$('foo').focus();
// focusing does not put the blinker back
--
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 [email protected]
.
To unsubscribe from this group, send email to [email protected]
.
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.