[Rails] Catching "keypress" event with observe_field
Gaël
gael.deest at gmail.com
Sun Aug 13 00:57:16 GMT 2006
I'm desperately trying to update a div when a key is pressed in a text
field.
Eg. :
<input type="text" id="field">
<div id="area"></div>
<%= observe_field :field, :url => {:action => :myAction}, :update =>
:area, :with => "text_param", :on => 'keypress' %>
This does not seem to work, and I can't understand why. Does someone
have any clue on what I am doing wrong ?
Thanks in advance
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list