What is the reason to use observe_field instead of onkeydown in rails?
Posted
by gorn
on Stack Overflow
See other posts from Stack Overflow
or by gorn
Published on 2010-05-31T23:00:44Z
Indexed on
2010/05/31
23:03 UTC
Read the original article
Hit count: 171
Is there any good reason why most rails developers use observe_field when they want trigger specific action when text input box is changed, rather then using onkeydown? I would expect, that in most of the cases using observe_field results much more code generated than just using native hook onkeydown.
© Stack Overflow or respective owner