Rails rjs event

3 views
Skip to first unread message

skilled_dreamer

unread,
Jul 17, 2008, 9:21:32 PM7/17/08
to Ruby on Rails: Talk
Good day,

Is it possible to use other javascript events in rails instead of
using just onsubmit and onclick?
Like i want to use onLoad or onBlur how will i do that in rails?

Thank you

Frederick Cheung

unread,
Jul 18, 2008, 2:29:29 AM7/18/08
to Ruby on Rails: Talk
Sure you can - just add an onBlur etc... option to the tag/element in
question. You can use the remote_function helper to generate the
javascript that makes an ajax request.

Fred
Reply all
Reply to author
Forward
0 new messages