Stop observe_field from observing
Posted
by TenJack
on Stack Overflow
See other posts from Stack Overflow
or by TenJack
Published on 2010-03-14T23:07:04Z
Indexed on
2010/03/15
6:39 UTC
Read the original article
Hit count: 239
I am using the rails helper observe_field to observe a the input of a textfield:
<%= observe_field :word_word, :frequency => 0.25, :function => "wordObserve('#{@word_str}')" %>
When the textfield input becomes a certain value, I would like to stop observing. I have tried both Event.stop() and Event.stopObserving(element, eventName, handler) but neither seem to work. Any ideas?
© Stack Overflow or respective owner