[Rails] Re: Disabling observe_form AJAX request on submit button click?

2008-11-04 Thread tonypm
I had a similar thing with a form whithout a submit button. I wanted to use form observer. The form only had select fields (and an autocomplete field). If I hit enter, the form gets submitted, even if the cursor is in the autocomplete field. Never did quite figure it out but got round it by u

[Rails] Re: Disabling observe_form AJAX request on submit button click?

2008-11-03 Thread Wes Gamble
Hijacking the click handler by adding this: :onclick => 'this.form.submit(); return false' to the submit_tag() call for the submit button seems to work well. Wes -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message becaus