Html options :onkeypress...

Well, from what you’ve posted, it looks like you want to use observe_field. So it would go something like this:

<%= text_field ‘name’, ‘method’, … %>

<%= observe_field ‘name[method]’, :url => {:controller … }, :update => … %>

Check out the API docs for full usage information, but this will send an AJAX request when the user leaves the field.

Jason