Displaying 1 result from an estimated 1 matches for "user_text".
Did you mean:
user_test
2006 Mar 13
2
Keypress events with no AJAX needed
...mple in Javascript?
It seems like all of the "helpers" involve server (controller)
communication.
For example, having a text field that just echos below what the user
types.
Is this the only way to do it?
<div id=''word_panel''>
<%= text_field_tag ''user_text''%>
<%= javascript_tag("Event.observe(''user_text'', ''keypress'',
function(event) { Element.update(''stylized_word'',
$F(Event.element(event)));})")%>
<div id=''show_word''></div...