Input controls on-the-fly?

i wish to know if there is some way to check user-input directly while
it’s inserted.
for example if i have to insert a number and the user press letters i
just have to hide/delete the letters and wait for numbers.

all without the need to press some submit button or any link…just
automatically.

Thanks
Lepre

lepre wrote:

i wish to know if there is some way to check user-input directly while
it’s inserted.
for example if i have to insert a number and the user press letters i
just have to hide/delete the letters and wait for numbers.

all without the need to press some submit button or any link…just
automatically.

Thanks
Lepre

It’s called JavaScript. Do a Google search for JavaScript validation and
you’re bound to find what you’re looking for.

Bryan D. wrote:

It’s called JavaScript. Do a Google search for JavaScript validation and
you’re bound to find what you’re looking for.

i know js but till now i only found validation after the submit button
(that’s why i said it) and nothing about on-the-fly…

i posted here also to know if there something directly in rails or not

lepre wrote:

Bryan D. wrote:

It’s called JavaScript. Do a Google search for JavaScript validation and
you’re bound to find what you’re looking for.

i know js but till now i only found validation after the submit button
(that’s why i said it) and nothing about on-the-fly…

i posted here also to know if there something directly in rails or not

I’m no rails guru so I couldn’t tell you if there’s something in rails
to do it automagically, but in JavaScript do something like -

http://www.htmlcodetutorial.com/forms/index_attsupp_5.html

OMG…i just got about RJS (ruby javascript)…that’s so nice…

Adam Beale wrote:

http://www.htmlcodetutorial.com/forms/index_attsupp_5.html

that open up the way :slight_smile:
thank you

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs