Create a form without a submit tag.   Put in another control on the
web page that does $('id_of_my_form').submit(); using a javascript
onclick event or whatever.

Regards,
Mukund


sa 125 wrote:
> Hi - I have the following problem: my app has a form that acts as a
> filter to a table on the page, so that the user can search any value in
> the table (via text box) or use select lists for more specific search.
> The form is being observed by an observe_form helper that runs every 1-2
> seconds or so. It's all still in testing.
>
> I noticed that when I hit return while in the textbox, the form posts
> and redirects me to an action unknown page. I want to remove that
> functionality so that hitting enter wont do anything -- any idea how to
> do it?
>
> Thanks
> --
> Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to