You can add Javascript to check for the value of the key pressed and
ignore it if it is the Enter key. I had to do the exact same thing for
the Backspace key not long ago, which was working as the Back icon in
some instances.

I have a sample but not here. I could give it to you if you still need
it tonight when I get home.

Pepe

On Dec 30, 5:16 am, Mukund <[email protected]> wrote:
> 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 viahttp://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